Timing circuit with rapid initialization on power-up

ABSTRACT

A timer initialization circuit is used to stabilize a timing signal of a system timed using a core oscillator. The timer initialization circuit includes a circuit which disables the core oscillator during a power-down mode and re-enables the core oscillator upon termination of the power-down mode. The timer initialization circuit also includes a circuit which stores an indication of an oscillation frequency at which the circuit operates immediately preceding the power-down mode.

RELATED PATENT APPLICATIONS

The present invention is related to subject matter which is disclosed in:

U.S. patent application Ser. No. 08/479,304 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Self-Calibrating RC Oscillator", Attorney Docket Number M-3173),

U.S. patent application Ser. No. 08/479,303 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Low Power RC Oscillator Using a Low Voltage Bias Circuit", Attorney Docket Number M-3340),

U.S. patent application Ser. No. 08/479,302 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Circuit for Detecting the Absence of an External Component", Attorney Docket Number M-3341),

U.S. patent application Ser. No. 08/479,301 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Circuit for Externally Overdriving an Internal Clock", Attorney Docket Number M-3342),

U.S. patent application Ser. No. 08/479,299 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Digitally-Tuned Oscillator Including a Self-Calibrating RC Oscillator Circuit", Attorney Docket Number M-3344), and

U.S. patent application Ser. No. 08/479,298 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "Multiple Stage Tracking Filter using a Self-Calibrating RC Oscillator Circuit", Attorney Docket Number M-3345).

RELATED PATENT APPLICATIONS

The present invention is related to subject matter which is disclosed in:

U.S. patent application Ser. No. 08/479,304 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Self-Calibrating RC Oscillator", Attorney Docket Number M-3173),

U.S. patent application Ser. No. 08/479,303 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Low Power RC Oscillator Using a Low Voltage Bias Circuit", Attorney Docket Number M-3340),

U.S. patent application Ser. No. 08/479,302 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Circuit for Detecting the Absence of an External Component", Attorney Docket Number M-3341),

U.S. patent application Ser. No. 08/479,301 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Circuit for Externally Overdriving an Internal Clock", Attorney Docket Number M-3342),

U.S. patent application Ser. No. 08/479,299 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "A Digitally-Tuned Oscillator Including a Self-Calibrating RC Oscillator Circuit", Attorney Docket Number M-3344), and

U.S. patent application Ser. No. 08/479,298 filed on the same day as the present patent application (Timothy G. O'Shaughnessy and David Brown, "Multiple Stage Tracking Filter using a Self-Calibrating RC Oscillator Circuit", Attorney Docket Number M-3345).

FIELD OF INVENTION

This invention relates to the field of oscillator circuits. More specifically, this invention describes an oscillator circuit which quickly initializes on power-up.

BACKGROUND OF THE INVENTION

Oscillators are circuits for converting dc power into a periodic waveform or signal. Conventional RC oscillators advantageously furnish a low-cost timing source and allow for generation of variable frequencies by changing the resistance R, or capacitance C. Furthermore, conventional RC oscillators advantageously avoid the use of inductors, which are difficult to fabricate on integrated circuits.

It is inherent in an oscillator that a lengthy interval transpires before the oscillator timing reaches a stable operating frequency following application of operating power. This characteristic is inherent in all oscillators, such as high Q LC oscillators or extremely high Q crystal oscillators, for example. In LC oscillators and crystal oscillators, slow stabilization results from the high Q of the oscillator circuit.

In laptop computers and low power computers, a power-down mode is an important feature to conserve power, particularly in battery-powered operation. In the power-down mode, power is not completely removed from a microprocessor chip. Rather the chip is left enabled but is placed in an idle state in which little power is consumed. A large amount of power is conserved in power-down mode by deactivation of the oscillator. However, a problem arises when power-down mode ends. If the oscillator takes too long to stabilize, the user of a laptop or low-power computer may perceive the slow response as an error in a function controlled by the oscillator. Therefore, it is highly advantageous to furnish a capability to respond quickly during recovery from power-down mode.

SUMMARY OF THE INVENTION

In accordance with an embodiment of the present invention, a timer initialization circuit is used to stabilize a timing signal of a system timed using a core oscillator. The timer initialization circuit includes a circuit which disables the core oscillator during a power-down mode and re-enables the core oscillator upon termination of the power-down mode. The timer initialization circuit also includes a circuit which stores an indication of an oscillation frequency at which the circuit operates immediately preceding the power-down mode.

In accordance with a second embodiment of the invention, a timing circuit includes an RC circuit which sets an RC time constant, a core oscillator which generates a timing signal at a controlled frequency and a comparator which is connected to the RC circuit and the core oscillator. The comparator compares an indicator of the controlled frequency to an indicator of the RC time constant. The timing circuit also includes an adjusting circuit that responds to a signal from the comparator by adjusting the frequency of the core oscillator. In some embodiments, the adjusting circuit includes a frequency counter which is connected to the core oscillator and a charge pump circuit which receives an input signal from the comparator and a control signal from the frequency counter. The charge pump generates a signal for driving the oscillator. The timing signal further includes an oscillator initialization circuit, such as the circuit described hereinbefore with respect to the first embodiment of the invention.

The rapid stabilization characteristic advantageously facilitates a quick response during recovery from power-down mode.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a functional block diagram of an embodiment of a self-calibrating RC oscillator circuit.

FIG. 2 depicts a transistor-level schematic diagram of an embodiment of the self-calibrating RC oscillator circuit.

FIG. 3 is a timing diagram which illustrates the operation of the RC oscillator shown in FIG. 2.

FIG. 4 illustrates a schematic circuit diagram of a voltage-controlled oscillator (VCO) in the RC oscillator circuit shown in FIG. 2.

FIGS. 5(a) through 5(f) illustrate a schematic circuit diagram of an additional embodiment of a self-calibrating RC oscillator circuit which is optimized for low power operation.

FIGS. 6(a) through 6(g) show a schematic circuit diagram of a digitally-tuned oscillator circuit.

FIGS. 7(a) and 7(b) illustrate mixed block-level and transistor-level schematic diagrams of an embodiment of a self-calibrating RC oscillator circuit which features rapid frequency settling on power-up from a power down condition.

FIG. 7(c) is a timing diagram which illustrates the internal timing of a monostable circuit shown in FIG. 7(b).

FIGS. 8(a) and 8(b) respectively illustrate a transistor-level schematic diagram of a clocked comparator circuit and a timing diagram showing the operation of the clocked comparator circuit.

FIGS. 9(a) and 9(b) respectively are graphs that illustrate electron (N-type carrier) mobility and hole (P-type carrier) mobility.

DETAILED DESCRIPTION

Referring to FIG. 1, a functional block diagram of an embodiment of a self-calibrating RC oscillator circuit 300 includes a voltage reference block 310, an operational amplifier 320, a ramp and hold circuit 330, an RC network 350, a comparator 360, a charge pump circuit 370, a core oscillator 380 and a divide-by-N binary counter 390. The RC network 350 includes a resistor Rosc and a capacitor Cosc. The RC oscillator circuit 300 has no phase comparator and, thus, fundamentally differs from a phase-locked loop (PLL). Furthermore, the RC oscillator circuit 300 uses no input frequency reference signal and, therefore, is not a frequency-locked loop (FLL).

The RC oscillator circuit 300 is constructed on an integrated circuit chip. In some embodiments, the RC oscillator circuit 300 includes multiple lines for controlling the oscillator to precisely trim the current to a desired accuracy. The voltage reference block 310 applies a voltage reference VREF to a noninverting input terminal of the operational amplifier 320. An output terminal of the operational amplifier 320 is connected to the gate of an N-channel MOS transistor 322, which has a source terminal connected through the resistor Rosc of the RC network 350 to a VSS (ground) reference. The source terminal of the N-channel MOS transistor 322 is connected to an inverted input terminal of the operational amplifier 320. Connected in this manner, operational amplifier 320 drives the N-channel MOS transistor 322 which, when connected in series with the resistor Rosc, forms a voltage-to-current converter having a current applied to the ramp and hold circuit 330.

The ramp and hold circuit 330 is connected to a control line Ctime from divide-by-N binary counter 390 and generates an output analog signal Vhold which is applied to the noninverting input terminal of analog comparator 360. Furthermore, ramp and hold circuit 330 has one terminal connected to the voltage-to-current converter formed by N-channel CMOS transistor 322 and resistor Rosc. The ramp and hold circuit 330 has a second terminal connected to capacitor Cosc for charging capacitor Cosc. The ramp and hold circuit 330 operates essentially as a current mirror which mirrors a current equal to VREF/Rosc to the capacitor Cosc, causing capacitor Cosc to charge in a substantially linear manner with time in accordance with the equation dV/dt=I/C. Thus, for a particular amount of charging time, capacitor Cost is charged to a voltage having a particular value. The charging time is controlled by a time duration signal on control line Ctime and applied to the ramp and hold circuit 330 by the divide-by-N binary counter 390. The divide-by-N binary counter 390 receives a timing signal from the core oscillator 380 and derives the time duration signal on control line Ctime by counting clock pulses of the timing signal and dividing down this count by a preselected denominator. When a selected time duration has transpired, Ctime signal stops the charging of the capacitor Cosc. Generally, if the frequency of the core oscillator 380 decreases, capacitor Cose charges for a longer time duration to higher voltages. If the core oscillator 380 frequency increases, capacitor Cosc charges for a shorter time to a lower voltage. The ramp and hold circuit 330 applies the voltage on capacitor Cosc to the analog comparator 360. Analog comparator 360 compares the Vhold voltage to the reference voltage VREF, which is received from the voltage reference block 310 at the inverting terminal of the analog comparator 360.

The analog comparator 360 generates a high or low value which is applied to the charge pump circuit 370. The signal from the analog comparator 360 ultimately depends on the frequency of operation of core oscillator 380 and is used to determine whether to pump up or pump down the charge pump circuit 370. The analog comparator 360 and charge pump circuit 370 act in combination to adjust the core oscillator 380 in a self-correcting manner using negative feedback. A voltage signal generated by the charge pump circuit 370 drives the core oscillator 380.

The core oscillator 380 generates the output signal of the RC oscillator 300 on frequency output line Fout and drives the divide-by-N binary counter 390. In the illustrative embodiment, the core oscillator 380 is a voltage-controlled oscillator (VCO). In other embodiments, a current-controlled oscillator (CCO) is utilized. A suitable CCO is better disclosed in U.S. patent application Ser. No. 08/379,049, entitled "A FREQUENCY CONVERTER UTILIZING A FEEDBACK CONTROL LOOP", O'Shaughnessy, T. G. et at., filed Jan. 27, 1995 (Attorney docket Number M-3174), which is herein incorporated by reference in its entirety. With respect to one aspect, the VCO embodiment is preferred because the output signal of the charge pump 370 is a voltage so that a CCO implementation would require an additional voltage to current converter circuit.

Thus, RC oscillator circuit 300 functions by comparing two voltages--a reference voltage which is supplied as an input signal and a frequency-derived voltage signal indicative of the operating frequency of the core oscillator 380. The core oscillator 380 produces a timing signal of pulses which oscillates at a determined frequency. The timing signal of pulses is frequency-divided by the divide-by-N binary counter 390. The frequency-divided timing signal from the binary counter 390 drives the ramp and hold circuit 330 and the integrating charge pump 370. The ramp and hold circuit 330 generates a current signal which is proportional in amplitude to the reference voltage. The current signal is mirrored to the capacitor Cosc.

Following initialization, the capacitor Cosc charges until the start of a "hold" interval which is controlled by the time duration signal on control line Ctime. If the frequency of the timing signal generated by the core oscillator 380 is low, the capacitor Cost charges to a "hold" voltage Vhold that exceeds the reference voltage Vref. The output signal of analog comparator 360 then activates the charge pump 370 to increase the input voltage to the core oscillator 380. The core oscillator 380 then increases the frequency of the timing signal of pulses. A high frequency of the VCO-generated timing signal produces a low "hold" voltage. The comparator 360 activates the charge pump 370 to decrease the input voltage to the core oscillator 380.

The RC oscillator circuit 300 is ratiometric so that: (1) the current Iramp charging the capacitor Cosc, (2) the ramp rate dV/dt, (3) the resulting "hold" voltage Vhold, and (4) the oscillator frequency Fosc are derived in accordance with the following equations:

    Iramp=m×(Vref/Rosc),                                 (1)

    dV/dt=(m×Vref)/(Rosc*Cosc),                          (2)

    Vhold=(m×Vref×Tramp)/(Rosc*Cosc),              (3)

    Fosc=(M×N)/(Rosc*Cosc),                              (4)

where Iramp is the current charging the capacitor Cost, m is the current mirror ratio, Rosc and Cosc are, respectively, the resistance and capacitance which are predefined for usage in the RC oscillator circuit 300 for setting the operating frequency. Furthermore, Vref is the internal reference voltage, Vhold and Tramp are, respectively, the hold voltage and time of the charging interval of the ramp and hold circuit 330, N is the divide-by ratio of the binary counter 390 and Fosc is the output frequency of the core oscillator 380.

The voltage reference VREF generated by the voltage reference block 310 is used for two functions. First, VREF is used to produce the current for charging the capacitor Cosc. Second, VREF is applied to the inverting input terminal of the analog comparator 360 for comparing to the Vhold signal in the RC oscillator 300 feedback loop. Notice in equation (3) above that Vhold is obtained from multiplying VREF with a parameter. Thus in the comparison of Vhold to VREF by analog comparator 360, VREF cancels so that the circuit is theoretically independent of the value of the reference voltage for purposes of determining the frequency of the RC oscillator 300. This theoretical lack of constraints on the value of VREF allows some circuit simplification. However, in practice, the analog comparator 360 has some offset voltage which contributes an additive error voltage to the input voltage level VREF. Thus, VREF is set to a sufficiently large amplitude to overwhelm the offset error.

The frequency of the core oscillator 380 establishes a "hold" voltage at the output terminal of the ramp and hold circuit 330. The hold voltage and a reference voltage from the voltage reference block 310 are applied to the input of the analog comparator 360. If the hold voltage is less than the reference voltage, the frequency is high. The comparator output then drives the charge pump 370 to produce a lower voltage for application to the input terminal of the core oscillator 380, which reduces the frequency of the core oscillator 380. If the frequency of the core oscillator 380 is low, the hold frequency increases, the comparator 360 drives the charge pump 370 to produce a larger voltage at the input terminal of the core oscillator 380, which increases the oscillator frequency.

RC oscillator circuit 300 samples its operating clock period, compares the sampled clock period to the sample period of RC network 350, and generates a negative feedback signal that corrects for variations in delay which result from changes in temperature, power supply voltage and variable process parameters.

RC oscillator circuit 300 includes several features that facilitate high performance. For example, the analog signal processing within the RC network 350, the analog comparator 360 and the charge pump circuit 370 operate under control of timing signals applied at a divided frequency of Fosc/N. This lower-frequency operation allows adequate settling time for transient signals within these analog circuits and, therefore, permits a very accurate comparison between the Vhold and Vref voltages.

In addition, scaling of the frequency by the binary counter 390 makes the time constant of the capacitor Cosc relatively larger with respect to the timing interval of the RC oscillator circuit 300. As a result, the capacitor Cosc becomes sufficiently large to be insensitive to charge injection and parasitic capacitances.

Various embodiments of the RC oscillator circuit 300 include different implementations of the RC network 350. For example, some embodiments of the RC oscillator circuit 300 are fully monolithic, having no external elements. In a completely monolithic embodiment, no pins are furnished for connection to external elements and the RC oscillator circuit 300 uses a polysilicon resistor array (not shown) that is trimmed to set the operating frequency. In a one-pin embodiment of the RC oscillator circuit 300, the capacitor Cosc is furnished using the chip dielectric of the integrated circuit. The one-pin RC oscillator 300 uses an external resistor Rosc and furnishes an option to trim out process variations of capacitance. In a two-pin embodiment of the RC oscillator 300, both the resistance of resistor Rosc and the capacitance of capacitor Cosc are furnished by external frequency-setting elements. The RC oscillator circuit 300 automatically corrects for changes in circuit delay resulting from variability in temperature, power supply voltage and MOS process parameters.

Referring to FIG. 2, a transistor-level schematic diagram of an embodiment of the self-calibrating RC oscillator circuit 400 shows a bias circuit 410, an inverter 420, a ramp and hold circuit 430, an RC network 450, an analog comparator 460, a charge pump circuit 470, a voltage-controlled oscillator (VCO) 480, a decode logic circuit 490 and a divide-by-N circuit 496.

The bias circuit 410 generates a reference current conducting through resistor Rosc 408 that is equal to VREF/Rosc and is therefore functionally similar to the voltage reference block 310 and operational amplifier 320 shown in FIG. 1. Single input analog comparator 460 includes input inverter 420 and CMOS inverters 462 and 464. Input inverter 420 includes a P-channel MOS transistor (P2) 422 and an N-channel MOS transistor (N2) 424. The single input terminal of inverter 420 is the gate of N-channel MOS transistor (N2) 424. The output terminal of inverter 420 is the drain of N-channel MOS transistor (N2) 424. The switching threshold of inverter 420 is a function of the current conducted through P-channel MOS transistor (P2) 422 so that an increase in current increases the switching threshold voltage. However, the switching voltage is widely variable, differing by up to several hundreds of millivolts, under varying process and temperature conditions although a particular switching voltage is very consistent within the same integrated circuit.

The inverter 420 is connected to the bias circuit 410 to duplicate the reference current through resistor Rosc 408. Bias circuit 410 includes a first current mirror P-channel MOS transistor (P3) 411, a second current mirror P-channel MOS transistor (P4) 412, a N-channel MOS transistor (N3) 413, a matched N-channel MOS transistor (N4) 414 and an N-channel MOS transistor (N1) 416. First current mirror P-channel MOS transistor (P3) 411 and second current mirror P-channel MOS transistor (P4) 412 form a current mirror 415 so that the current drawn off the drain of first current mirror P-channel MOS transistor (P3) 411 is mirrored to second current mirror P-channel MOS transistor (P4) 412. The drain terminals of first current mirror P-channel MOS transistor (P3) 411 and second current mirror P-channel MOS transistor (P4) 412 are respectively connected to the drain terminals of N-channel MOS transistor (N3) 413 and matched N-channel MOS transistor (N4) 414. Furthermore, N-channel MOS transistor (N3) 413 and matched N-channel MOS transistor (N4) 414 are matched and receive the same current from the current mirror 415 so that their gate to source voltages are virtually identical.

N-channel MOS transistor (NI) 416 has a drain terminal and a gate terminal connected to the source terminal of matched N-channel MOS transistor (N4) 414 and a source terminal connected to the ground reference source VSS. Connected in this manner, N-channel MOS transistor (N1) 416 generates a gate to source voltage V_(GNS1) which is equal to the voltage across the resistor Rosc 408 in accordance with the equation:

    V.sub.Rosc =V.sub.GSN1

so that the current i_(Rosc) conducted through the resistor Rosc 408 is determined according to the equation:

    i.sub.Rosc =V.sub.GS1 /R.sub.osc.

The current i_(Rosc) charges the capacitor Cosc 409 through the operation of the ramp and hold circuit 430.

The bias circuit 410 described with respect to FIG. 2 includes five transistors 411, 412, 414, 416 and 413 and performs functions which are analogous to the functions of voltage reference generator 310, operational amplifier 320 and MOS transistor 322 shown in FIG. 1. The RC oscillator 400 is advantageously a simplified circuit which does not utilize an operational amplifier or a differential comparator.

The ramp and hold circuit 430 includes a ramp and hold input P-channel MOS transistor (P5) 431, a ramp and hold differential switch 432, and a ramp and hold N-channel transistor (N7) 436. The ramp and hold differential switch 432 includes a first ramp and hold differential switch P-channel MOS transistor (P6) 433 and a second ramp and hold differential switch P-channel MOS transistor (P7) 434. Ramp and hold input P-channel MOS transistor (P5) 431 has a source terminal connected to the power supply source VDD, a drain terminal connected to the ramp and hold differential switch 432 and a gate terminal connected to the gate terminals of first current mirror P-channel MOS transistor (P3) 411 and second current mirror P-channel MOS transistor (P4) 412. First ramp and hold differential switch P-channel MOS transistor (P6) 433 has a source terminal connected to the drain terminal of ramp and hold input P-channel MOS transistor (P5) 431, a drain terminal connected to the ground reference source VSS and a gate terminal connected to a HOLDF (hold false) control line from the decode logic 490. Second ramp and hold differential amplifier P-channel MOS transistor (P7) 434 has a source terminal connected to the drain terminal of ramp and hold input P-channel MOS transistor (P5) 431 and a gate terminal connected to a HOLD control line from the decode logic 490. Ramp and hold N-channel transistor (N7) 436 has a source terminal connected to the ground reference source VSS, a drain terminal connected to the drain terminal of second ramp and hold differential amplifier P-channel MOS transistor (P7) 434 and to capacitor Cosc 409 and a gate terminal connected to an INIT line from the decode logic 490. Due to the extensive transistor matching and current mirroring in the bias circuit 410, the current conducting through P-channel MOS transistors (P3) 411 and (P4) 412 and N-channel MOS transistors (N3) 413, (N4) 414 and (N1) 416 are essentially the same and equal to i_(Rosc). Ramp and hold input N-channel MOS transistor (P5) 431 also forms a current mirror with first current mirror P-channel MOS transistor (P3) 411 so that nearly the same current i_(Rosc) passes through the drain of ramp and hold input N-channel MOS transistor (PS) 431, through second ramp and hold differential amplifier P-channel MOS transistor (P7) 434, thereby charging the capacitor Cosc 409. The current i_(Rosc) generated by the bias circuit 410 produces a voltage across the resistor Rosc 408 having a value that can be arbitrarily set in a wide range of voltages and for this arbitrary voltage a corresponding arbitrary proportional current charges the capacitor Cosc 409. In addition, N-channel MOS transistor (N2) 424 is matched to N-channel MOS transistor (N1) 416 so that the gate to source voltage V_(GNS1) is very precisely equal to the switching voltage of the CMOS input inverter 420 of P-channel MOS transistor (P2) 422 and N-channel MOS transistor (N2) 424.

The output signal of the CMOS inverter 420 is passed from the drain terminals of P-channel MOS transistor (P2) 422 and N-channel MOS transistor (N2) 424 to the input terminal of analog comparator 460, which includes inverters 462 and 464.

Operation of the RC oscillator 400 is described with reference to the timing diagram shown in FIG. 3 in conjunction with FIG. 2. Decode logic 490 controls a four phase timing cycle 405 including phases T1 401, T2 402, T3 403 and T4 404. During a charge ramping interval of phase T1 401, the capacitor Cosc 409 is charged as the decode logic 490 sets the hold signal on line HOLD to a low logic level and sets the hold false signal on line HOLDF to a high logic level, respectively making second ramp and hold differential switch P-channel MOS transistor (P7) 434 conductive and first ramp and hold differential switch P-channel MOS transistor (P6) 433 nonconductive. Accordingly, the current i_(Rosc) from ramp and hold input N-channel MOS transistor (P5) 431 is steered to capacitor Cosc 409 and the charge across the capacitor Cosc 409 steadily increases or "ramps up".

During a voltage hold phase T2 402, the charge on capacitor Cosc 409 is held constant as the decode logic 490 sets the hold signal on line HOLD to a high logic level and sets the hold false signal on line HOLDF to a low logic level, respectively making second ramp and hold differential switch P-channel MOS transistor (P7) 434 nonconductive and first ramp and hold differential switch P-channel MOS transistor (P6) 433 conductive. The current i_(Rosc) from ramp and hold input N-channel MOS transistor (P5) 431 remains the same but is steered to ground reference source VSS. Also during interval T2 402, the comparison of the voltage on capacitor Cosc 409 is made. While the charge on capacitor Cosc 409 is held for the entire interval T2 402, the comparison of the voltage on capacitor Cosc 409 may last the duration of interval T2 402 or may last only a fraction of interval T2 402. Some advantages arise if the compare operation endures for only a fraction of the interval. These advantages are discussed hereinafter in a discussion of the charge pump circuit 470. Thus, the overall result of the operations of bias circuit 410, input inverter 420 and ramp and hold circuit 430 is that if the capacitor Cosc 409 is charged to a voltage greater than the gate to source voltage V_(GNS1) of N-channel MOS transistor (N1) 416 then the output voltage of N-channel MOS transistor (N2) 424 signifies a logic zero. Otherwise, the gate voltage of N-channel MOS transistor (N2) 424 is insufficient to sink the current from P-channel MOS transistor (P2) 422 so that N-channel MOS transistor (N2) 424 generates a logic one signal. CMOS inverters 462 and 464 have sufficient voltage gain, that rail-to-rail CMOS logic levels are produced to the respective input terminals of charge pump 475.

Thus, time intervals T1 401 and T2 402 respectively time the ramping and holding operations of the ramp and hold circuit 430. These operations are similar to the sample and hold operations of a sample and hold circuit but differ in that no external voltage is sampled, but rather an internal charge on the capacitor Cosc 409 is measured.

During time interval T3 403, capacitor Cosc 409 is discharged. Ramp and hold N-channel transistor (N7) 436 is activated under control of decode logic 490 which sets an initialized signal on line INIT to a logic one from a previous value of logic zero and thereby renders ramp and hold N-channel transistor (N7) 436 conductive to discharge capacitor Cosc 409. The initialized signal on the INIT line is high during time intervals T3 and T4 and low during intervals T1 and T2. At the rising edge of the signal on the INIT line, decode logic 490 produces a falling edge on the HOLD line so that the current from ramp and hold input N-channel MOS transistor (P5) 431 is conducted through both second ramp and hold differential switch P-channel MOS transistor (P7) 434 and ramp and hold N-channel transistor (N7) 436. As ramp and hold N-channel transistor (N7) 436 becomes conductive and operates in the ohmic region, capacitor Cosc 409 is discharged to a small offset voltage, the voltage level of the "on voltage" of ramp and hold N-channel transistor (N7) 436 (for example, approximately 50 mV). This discharging of capacitor Cosc 409 may be considered a "predischarge" operation to a much lower voltage than the "hold" voltage.

During time interval T4 404, any residual charge is discharged from capacitor Cosc 409. Decode logic 490 sets the hold signal on HOLD line high and the hold false signal on HOLDF line low. The initialized signal on INIT line remains high so that ramp and hold N-channel transistor (N7) 436 remains conductive. No additional current from ramp and hold input P-channel MOS transistor (P5) 431, other than a possible small leakage current, is conducted to ramp and hold N-channel transistor (N7) 436 because the current is steered down the drain of first ramp and hold differential switch P-channel MOS transistor (P6) 433. Thus, ramp and hold N-channel transistor (N7) 436 is operating in the ohmic region and conducting only a leakage current from second ramp and hold differential amplifier P-channel MOS transistor (P7) 434. Only a very small residual voltage of approximately 50 μV, essentially zero, remains on the capacitor Cosc 409. At the end of interval T4 404, capacitor Cosc 409 is very completely discharged to a precise initial condition of zero volts and again is ready to repeat the charging interval 401.

Charge pump circuit 470 includes a charge pump current source P-channel MOS transistor (P9) 471, a charge pump control differential switch 472, a charge pump signal differential amplifier 475, and a charge pump capacitor Cpump. Charge pump current source P-channel MOS transistor (P9) 471 has a source terminal connected to power supply source VDD and a drain terminal connected to charge pump control differential switch 472. Charge pump current source P-channel MOS transistor (P9) 471 has a W/L ratio which is reduced from the ratio of first current mirror P-channel MOS transistor (P3) 411 so that the charge pump sourced current i_(pump) is made much smaller than current i_(Rosc). Charge pump control differential switch 472 includes a pump true P-channel MOS transistor (P10) 473 and a pump false P-channel MOS transistor (P11) 474. Pump true P-channel MOS transistor (P10) 473 has a source terminal connected to the drain terminal of charge pump current source P-channel MOS transistor (P9) 471, a drain terminal connected to ground reference source VSS and a gate control terminal connected to decode logic 490 via a PUMPT line. Pump false P-channel MOS transistor (P11 ) 474 has a source terminal connected to the drain terminal of charge pump current source P-channel MOS transistor (P9) 471, a drain terminal connected to charge pump signal differential amplifier 475 and a gate control terminal connected to decode logic 490 via a PUMPF line. Charge pump current source P-channel MOS transistor (P9) 471 and charge pump control differential switch 472 source current to the charge pump differential amplifier 475. Charge pump differential amplifier 475 includes a charge pump first P-channel MOS transistor (P13) 476, a charge pump second P-channel MOS transistor (P12) 477, a charge pump first N-channel MOS transistor (N13) 478 and a charge pump second N-channel MOS transistor (N14) 479. Charge pump first P-channel MOS transistor (P13) 476 has a source terminal connected to the drain terminal of pump false P-channel MOS transistor (P11) 474, a drain terminal, and a control gate terminal connected to the output terminal of inverter 462 of analog comparator 460. Charge pump P-channel MOS transistor (P12) 477 has a source terminal connected to the drain terminal of pump false P-channel MOS transistor (P11) 474, a drain terminal connected to the charge pump capacitor Cpump of charge pump circuit 470 and to the control input of VCO 480, and a control gate terminal connected to the output terminal of inverter 464 of analog comparator 460. Charge pump N-channel MOS transistor (N13) 478 has a source terminal connected to the ground reference VSS and a drain and gate terminal connected to the drain terminal of charge pump P-channel MOS transistor (P13) 476. Charge pump N-channel MOS transistor (N14) 479 has a source terminal connected to the ground reference VSS, a gate terminal connected to the gate terminal of charge pump N-channel MOS transistor (N13) 478 and a drain terminal connected to the drain terminal of charge pump P-channel MOS transistor (P12) 477.

Decode logic 490 controls the charge pump circuit 470 to acquire the logic signal at the output of analog comparator 460 by controlling a pump true signal on a PUMPT line and a pump false signal on a PUMPF line which is complementary to the PUMPT line. At the time within interval T2 402 when the comparison of capacitor Cosc 409 is sufficiently complete, then decode logic 490 sets the pump true signal high and the pump false signal low so that pump true P-channel MOS transistor (P10) 473 is nonconductive and pump false P-channel MOS transistor (P11) 474 conducts the current i_(pump) from the drain terminal of charge pump current source P-channel MOS transistor (P9) 471 through the source and drain of pump false P-channel MOS transistor (P11) 474 to begin charging the current sources of charge pump P-channel MOS transistors (P13) 476 and (P12) 477. The state of the analog comparator 460 controls the current flow in charge pump signal differential amplifier 475.

When differential amplifier second P-channel MOS transistor (P12) 477 has a low signal on the gate terminal and is therefore conductive and differential amplifier first P-channel MOS transistor (P13) 476 has a high signal on the gate terminal and is nonconductive, the drain current of pump false P-channel MOS transistor (P11) 474 is transmitted to linearly charge the pump capacitor Cpump. The voltage on the capacitor Cpump changes linearly because the capacitor Cpump is charged with a fixed current. When charge pump second P-channel MOS transistor (P12) 477 has a high signal on the gate terminal and is nonconductive and charge pump first P-channel MOS transistor (P13) 476 has a low signal on the gate terminal and is conductive, the drain current of pump false P-channel MOS transistor (P11) 474 is conducted to the ground reference VSS. At the end of the T2 402 interval the charge on the charge pump capacitor Cpump is held as decode logic 490 sets the pump true signal low and the pump false signal high so that pump true P-channel MOS transistor (P10) 473 is conductive and passes the drain current of pump false P-channel MOS transistor (P11) 474 to ground reference VSS.

Otherwise differential amplifier second P-channel MOS transistor (P12) 477 has a high signal on the gate terminal and is nonconductive and charge pump first P-channel MOS transistor (P13) 476 has a low signal on the gate terminal and is conductive, the drain current of pump false P-channel MOS transistor (P11) 474 is steered to N13. N13 forms a current mirror with N14 so that N14 duplicates the current of N13, which allows the charge pump circuit 470 to discharge a unit of charge from the capacitor Cpump, linearly decreasing the charge on capacitor Cpump because the current is fixed. Accordingly, the charge pump circuit 470 either charges or discharges the charge pump capacitor Cpump with the charge and discharge amounts being substantially equivalent. Thus the voltage across the pump capacitor Cpump may have the form of a stairstep function either charging or discharging the pump capacitor Cpump depending on whether the VCO 480 is high in frequency or low in frequency. Eventually the frequency of the VCO 480 reaches a steady-state, balanced condition in which the voltage across the capacitor Cosc 409 substantially matches the threshold voltage V_(GSN1) so that the voltage across the pump capacitor Cpump toggles between charging and discharging for each successive T2 402 timing interval to the next. Each adjustment causes the oscillating frequency to deviate slightly from the ideal oscillating frequency determined by the RC network 450, slightly overcompensating for the previous adjustment in the opposite direction. The charge pump circuit 470 continues to alternately charge and discharge the pump capacitor Cpump until a change in operating conditions such as initialization, a quantum charge, a parasitic leakage or the like occurs which causes readjustment of the charge pump. In this manner, the charge pump circuit 470 generates an error voltage that causes the feedback loop of the RC oscillator circuit 400 to self-correct so that the average frequency is precisely the correct frequency of oscillation. This condition is called a "dither" and the average oscillating frequency is extremely accurate.

In accordance with the function of charge pump circuit 470, RC oscillator 400 is frequency-modulated with the amount of frequency modulation determined by the size of the pump capacitor Cpump and the amount of current i_(pump) conducting through the drain of charge pump current source P-channel MOS transistor (P9) 471. More frequency modulation results for a larger current i_(pump) and for a smaller pump capacitor Cpump. Likewise, less frequency modulation occurs for a smaller value of pump current i_(pump) and also for a larger pump capacitor Cpump.

The decode logic circuit 490 and divide-by-N circuit 496 in RC oscillator 400 implement a divide-by-N operation in which N is an integer multiple of four, and N has a minimum value of four. N is at least four to count the four-phase timing cycle 405 shown in FIG. 3. The four-phase timing cycle includes two phases ("on" and "off" phases) of the initialized signal on the INIT line for each cycle, and four phases (two cycles) of the hold true and hold false signals on the HOLD and HOLDF lines. N is increased to a number greater than four to improve performance of RC oscillator 400 since it is advantageous to control the pump true and false signals on the PUMPT and PUMPF lines for a shorter interval of time than the hold true and hold false signals. The pump true and false signals operate at the same frequency as the initialized signal on the INIT line but at a lower duty cycle. Thus, increasing the N count of the divide-by-N circuit 496 higher than four avoids nonideal loop dynamics that occurs when steering current to the pump capacitor Cpump and the frequency changes. Increasing the N count allows the comparator more time to settle before sampling and permits the sampling interval to be shortened, avoiding the nonideal correction of the loop that results from adjusting the oscillator frequency over a large fraction of the evaluation interval.

Referring to FIG. 4, the VCO 480 includes an operational amplifier 510, a current mirror 520, a quadripole network 530, capacitors C1 and C2, inverter network 540, and NOR gates 552 and 554. The inverter network 540 includes inverters 542, 544, 546 and 548.

An input voltage VIN, the voltage across the pump capacitor Cpmnp of the charge pump circuit 470, is applied to the noninverting input terminal of operational amplifier 510, which is configured in a negative feedback loop having the inverting input terminal of the operational amplifier 510 connected to a resistor RIN. As the voltage VIN is continuously applied, the operational amplifier 510 eventually reaches a steady state condition in which the signals applied to the noninverting and inverting input terminals of operational amplifier 510 are equal. In this steady state condition, the current of resistor RIN is substantially equal to the input voltage divided by the resistance of resistor RIN. This current is conducted through a MOS N-channel transistor (MN0) 526 to the current mirror 520. The current mirror 520 includes P-channel transistors (MP0) 522 and (MP4) 524.

Current from the current mirror 520 feeds the quadripole network 530 which includes P-channel transistors (MP1) 534 and (MP2) 532 and N-channel transistors (MN1) 538 and (MN2) 536. The quadripole network 530 is controlled by NOR gates 552 and 554, which have mutually complementary output states, one gate having a logic 1 value and the other having a logic 0 value, to establish that only one transistor of N-channel transistors (MP1) 534 and (MP2) 532 is conductive at one time. For example, when a logic 0 is applied to the gate of transistor (MP1) 534, the transistor is conductive so that current conducting through P-channel transistor (MP4) 524 charges capacitor C1. The logic 0 also appears at the gate of N-channel transistor (MN1) 538, making the transistor nonconductive. When a logic 0 is applied to the gates of transistors 534 and 538, a logic 1 is simultaneously applied to the gates of transistors 532 and 536 since the output signals of NOR gates 552 and 554 are mutually complementary. Therefore, capacitor C2 is discharging when capacitor C1 is charging. Capacitor C1 charges linearly towards the threshold voltage of inverter 542. When the switching threshold of inverter 542 is exceeded, the logic signal of inverter 546 goes high, charging capacitor CH1 and reinforcing the signal to inverter 542. Positive feedback through capacitor CH1 ensures that the output voltage of inverter 546 goes essentially to the rail of the positive power supply terminal VDD. A suitable voltage transition of inverter 546, assures that the logic signal to NOR gate 552 has a range capable of crossing the threshold of NOR gate 552. As a logic 1 signal is applied to NOR gate 552, the output logic signal of NOR gate 552 goes low.

As capacitor C1 is charged, capacitor C2 is discharged. Thus, as the charge ramp is applied to the input terminal of inverter 542, the input terminal of inverter 544 is held at a logic 0 level and is not ramping. Therefore, the output logic state of inverter 548 is held at a logic 0 level. Once the output logic level of inverter 546 starts to go high due to the charging of capacitor C1, a logic 1 level is applied to the input terminal of NOR gate 552, causing the output terminal of the NOR gate 552 to transition to a logic 0 level. The output terminal of NOR gate 552 is connected to the input terminal of NOR gate 554 so that two logic 0 levels are applied to the input terminal of NOR gate 554, setting the output terminal of NOR gate 554 to a logic 1. This reinforces the original logic 1 level from the output terminal of inverter 546. The change of state in the output logic level of NOR gate 552 to a logic 0 and change of state in the output logic level of NOR gate 554 to a logic 1 is fed back to input terminals of the quadripole network 530 via feedback lines FB1 and FB2. Feedback line FB1 controls the gate of P-channel transistor (MP2) 532 with a logic 0 level so that transistor (MP2) 532 becomes conductive. Thus capacitor C2 is then charged with the linear ramp signal. As capacitor C2 is charged, the output condition of NOR gate 554 is a logic 1, which is applied to the gates of N-channel transistor (MN1) 538 and P-channel transistor (MP1) 534. Accordingly, P-channel transistor (MP1) 534 is turned off and N-channel transistor (MN1) 538 is turned on, discharging capacitor C1. As the voltage across capacitor C1 decreases, the threshold of inverter 542 is crossed. Inventor 546 transitions to a logic 0, reinforcing the discharge of capacitor C1. NOR gates 552 and 554 are cross coupled and, thus, the logic state is held until the output of inverter 548 transitions to a logic 1.

The same process occurs with respect to capacitor C2. When the charge on capacitor C2 crosses the threshold of inverter 544, a logic 1 value is applied to the NOR gate 554 in a repeating oscillatory process. Thus the VCO 480 forms an astable multivibrator in which the current to feed the two capacitors C1 and C2 alternately ramps in a linear manner to the threshold voltage of inverters 542 and 544 respectively.

The period of oscillation of VCO 480 is the time for the current passing through transistor (MP4) 524 to charge the capacitors C1 and C2 to the threshold voltage of inverters 542 and 544 respectively. A very precise timing cycle having nearly a 50% duty cycle is achieved by matching of capacitors C1 and C2 since the same charging current is applied to both capacitors. The frequency of oscillation is set by selection of the resistance RIN and selection of the current mirror ratio of current mirror 520.

The VCO 480 circuit also includes a fault detector 570 which includes NAND gate 578 and P-channel transistor (MP5) 572. In the absence of a fault detector, a fault might occur in case of a logic 1 condition of inverters 546 and 548 which causes application of logic 1 conditions to both input terminals of NOR gates 552 and 554. Thus NOR gates 552 and 554 simultaneously have a logic 0 condition so that both capacitors C1 and C2 charge to a voltage greater than the threshold voltages of inverters 542 and 544. Oscillation of the VCO 480 would therefore stop.

Fault detector 570 prevents such a fault condition by detecting a simultaneous logic 1 input logic level to the NOR gates 552 and 554. The input signals to NOR gates 552 and 554 are applied to the input terminals of NAND gate 578 so that P-channel transistor 572 becomes conductive in case of simultaneous logic 1 levels. When P-channel transistor 572 becomes conductive, it produces a signal on the line to the gates of P-channel transistor (MP1) 534 and N-channel transistor (MN1) 538 causing capacitor C1 to discharge to restore an oscillatory operating condition.

The voltage-controlled oscillator (VCO) 480 has two input terminals, one output terminal and two power supply terminals. The input terminals include a VCO voltage input terminal VIN and a power down input terminal PD. The output terminal is a VCO frequency output terminal VCOOUT to the frequency output line Fout shown in FIG. 2 which produces an output frequency signal having a range from approximately 4 kHz to 4 MHz. The power supply terminals include an analog positive supply terminal VDD and an analog negative power supply terminal VSS. VCO 480 produces an output frequency that is substantially monotonic relative to the input voltage at voltage input terminal VIN. VCO 480 produces an output frequency signal four that drives an input frequency signal to the divide-by-N circuit 496. A binary counter of the divide-by-N circuit 496, in turn, drives an input signal to the decode logic 490. The binary counter (divide by N) 496 and decode logic 490 generate digital control timing signals INIT, HOLD, HOLDF, PUMPT, and PUMPF. Detailed descriptions of the counter and decode logic are disclosed hereinafter.

Referring now to FIGS. 5(a) through 5(f), there is shown a schematic block diagram of RC oscillator circuit 600 which improves low power performance. Low power RC oscillator 600, shown in FIG. 5(a) includes a bias circuit 610, a ramp and hold circuit 630, a comparator 650, a charge pump 670, an oscillator 680 and a frequency counter 690. In contrast to the embodiments shown in FIGS. 1 and 2, the ramp and hold circuit 630 uses a bias circuit 610 rather than an operational amplifier to establish the current flowing through a resistor. The "hold" voltage, which is generated by the ramp and hold circuit 630, is applied to the input terminal of a CMOS inverter. The switching threshold of the CMOS inverter is a gate-to-source voltage Vgs of a transistor. If the frequency is low, the hold voltage exceeds Vgs, the comparator 650 drives the charge pump 670 to produce a larger voltage at the input terminal of the oscillator 680 which increases the oscillator frequency. If the frequency is high, the hold voltage decreases to a level below Vgs, the comparator 650 drives the charge pump 670 to produce a smaller voltage at the input terminal of the oscillator 680 which decreases the oscillator frequency.

Referring to FIG. 5(b), the bias circuit 610 functions in a manner which is similar to that of bias circuit 410, shown in FIG. 2. In particular, bias circuit 610 has a bias structure 611 including P-channel MOS transistors (MPB1C) 612 and (MPBOC) 613 and N-channel MOS transistors (MB1C) 614, (MBOC) 615 and (MBOB) 616. Bias structure 611 generates a voltage across external resistor Rext, which is substantially equal to the gate-to-source voltage V_(GS) of the N-channel MOS transistor (MBOB) 616, as the N-channel MOS transistors (MBOB) 616 and (MBOC) 615 raise the voltage two gate-to-source voltages from a ground reference source VSS and the N-channel MOS transistor (MB1C) 614 drops the voltage one voltage V_(GS). A current mirror is formed by diode-connected P-channel MOS transistor (MPB1C) 612 and P-channel MOS transistor (MPBOC) 613. The drain current of MOS transistor 614 becomes Vgs/Rext. This drain current is mirrored by P-channel MOS transistors (MPBIC) 612 and (MPBOC) 613, which, in turn, furnishes drain current to N-channel MOS transistors (MBOC) 615 and (MBOB) 616. MOS transistors (mpx1) 625, (mpx2) 626, (mnx0) 627, (mnx1) 628, and (mnx2) 629 supply a start-up current to the chain of P-channel MOS transistor (MPBIC) 612. The start-up current generated at the drain of MOS transistor (mnx1) 628 is turned off when the bias voltage VGS exceeds the threshold of MOS transistor (mnx2) 629.

In addition to the transistors of bias structure 611 which furnish a functionality which is similar to that of bias circuit 410, the bias circuit 610 also includes a common P-bias line P-channel MOS transistor (MPCOMP) 617, forming a source-drain path between the gate of P-channel MOS transistor (MPB1C) 612 and a P-bias line 620, and a bias capacitor CBIAS. The gate of the P-bias line P-channel transistor (MPCOMP) 617 is shown connected to a common drain connection of inverter P-channel MOS transistor 622 and inverter N-channel MOS transistor 623 of an inverter 621. The inverter 621 furnishes a static potential that causes activation of P-bias line P-channel transistor (MPCOMP) 617. In other embodiments, the gate of P-bias line P-channel transistor (MPCOMP) 617 is connected to other static potential sources such as the power supply source VDD or the ground reference VSS. The P-bias line P-channel transistor (MPCOMP) 617 is configured as half a transmission gate which isolates the diode-connected P-channel MOS transistor (MPB1C) 612 from other MOS transistors connected to the P-bias line 620, including a P-channel MOS transistor (MP1) 652 of comparator 650 and a P-channel MOS transistor (MP4) 602 shown in FIG. 5(a). The P-bias line P-channel MOS transistor (MPCOMP) 617 acts as a large-valued resistor, having a resistance which increases as the transistor length dimension (L) is increased and width dimension (W) is decreased. Thus, P-bias line P-channel MOS transistor (MPCOMP) 617 serves as a resistor between the gate and drain connection of P-channel MOS transistor (MPB1C) 612 and the common gate connection of P-channel MOS transistor (MPB0C) 613 and a ramp N-channel MOS transistor (MP1RAMP) 619. The bias capacitor CBIAS is connected between the P-bias line 620 and the power supply source VDD. The common P-bias line P-channel MOS transistor (MPCOMP) 617 and bias capacitor CBIAS form a low-pass RC filter 618 which performs three functions.

First, the low-pass RC filter 618 increases the stability of the bias structure 611 to counteract any parasitic capacitance that occurs across the external resistor Rext. The external resistor Rext may have an excessive amount of parasitic capacitance which forms a relaxation oscillator at some critical value of capacitance and tends to reduce the stability of the bias structure 611. Low-pass RC filter 618 suppresses oscillation of the bias structure 611.

Second, although a unity DC gain is an advantage of the bias circuit 610, stability is further improved by reducing AC gain below unity. Therefore, the P-bias line 620 is a common gate connection among MOS transistors in the forward path of the bias circuit 610 and has the same DC potential as the gate of the diode-connected P-channel MOS transistor (MPB1C) 612 but is attenuated with respect to AC characteristics due to the resistance of common P-bias line P-channel MOS transistor (MPCOMP) 617 and the capacitance of bias capacitor CBIAS. Thus, the AC gain of the bias circuit 610 is attenuated to improve stability as larger values of capacitance are placed across the external resistor Rext.

Third, the bias capacitor CBIAS furnishes a relatively large capacitance which serves as a noise reduction capacitor for stray noise that couples onto the P-bias line 620, overpowering any parasitic or packaging coupling capacitance with the larger bias capacitor CBIAS.

Referring again to FIG. 5(a), comparator 650 includes the P-channel MOS transistor (MP1) 652, an N-channel MOS transistor (MN1) 654, a first inverter 656 and a second inverter 658. P-channel MOS transistor (MP1) 652 has a source connected to the power supply source VDD, a drain connected to a drain node cmp0 and a gate controlled by the P-bias line 620. N-channel MOS transistor (MN1) 654 has a source connected to the ground reference VSS, a drain connected to the drain node cmp0 and a gate controlled by the ramp and hold circuit 630. A signal on the drain node cmp0 is applied to the input terminal of the first inverter 656 and passes through second inverter 658. The two inverters 656 and 658 supply more gain to comparator 650. P-channel MOS transistor (MP1) 652 and P-channel transistors (MPB1C) 612 and (MPB0C) 613 of bias circuit 610 are all matched, having current mirror ratios of 1:1.

Referring now to FIG. 5(c), RC oscillator 600 utilizes a switched capacitor charge pump 670 which includes two transfer gates 672 and 674 and two capacitors--a charge pump capacitor Cpump and a output capacitor C_(OUT). First transfer gate 672 includes P-channel MOS transistor 676 and an N-channel MOS transistor 677. P-channel MOS transistor 676 has a source connected to an input signal from comparator 650, a drain connected to the second transfer gate 674 and a gate controlled by a pump true PUMPT signal. N-channel MOS transistor 677 has a source to drain pathway connected across P-channel transistor 676 and a gate controlled by a pump false PUMPF signal. The charge pump capacitor Cpump is connected on one side between the first and second transfer gates 672 and 674 and connected on the other side to the power supply source VDD. Second transfer gate 674 includes P-channel MOS transistor 678 and an N-channel MOS transistor 679. P-channel MOS transistor 678 has a source connected to the first transfer gate 672, a drain supplying the charge pump output signal CPOUT and a gate controlled by a pump false PUMPF signal. N-channel MOS transistor 679 has a source to drain pathway connected across P-channel transistor 678 and a gate controlled by a pump true PUMPT signal. The output capacitor C_(OUT) is connected on one side to the charge pump output line CPOUT and connected on the other side to the power supply source VDD. In an alternative embodiment, capacitors Cpump and C_(OUT) are connected to the ground reference VSS rather than to the power supply reference Vdd.

The first transfer gate 672 charges the charge pump capacitor Cpump to either VDD or VSS under control of the control signal output from the second inverter 658 of comparator 650. Charge pump capacitor Cpump is charged substantially to the rail of either VDD or VSS due to the high gain supplied by inverters 656 and 658. Switched capacitor charge pump 670 receives the output voltage of comparator 650 and precharges the pump capacitor Cpump close to VDD or VSS voltage during a first pump signal phase when PUMPF signal is high and PUMPT signal is low. Charge pump 670 receives the PUMPF and PUMPT signals from a frequency counter 690. In a second pump signal phase, PUMPF is low and PUMPT is high and the logic 1 or logic 0 output voltage of comparator 650 is disconnected from charge pump capacitor Cpump while the second transfer gate 674 is reconnected and the charge from charge pump capacitor Cump is dumped to output capacitor C_(OUT) to set the charge pump voltage to either a high level VDD or a low level VSS. Output capacitor C_(OUT) is a larger capacitor than charge pump capacitor Cpump. Output capacitor C_(OUT) is charged to a voltage which is applied to drive oscillator 680. Thus a small quantum step of voltage, the step size being determined by the size ratio of capacitor Cpump to capacitor C_(OUT). For example, in one embodiment the Cpump capacitor has a capacitance of 1% of the charge pump output capacitance Cout. It is advantageous that the quantum step size is determined by the ratio of capacitances. In the charge pump circuit 470 shown in FIG. 2 the quantum step is set by the drain current of charge pump current source P-channel MOS transistor (P9) 471, which depends on the dimensions of charge pump transistor (P9) 471, a parameter which is more difficult to control than capacitor sizing.

This transfer gate implementation permits the RC oscillator 600 to operate at a very low power supply voltage because the transfer gates 672 and 674 use less voltage to switch charge than does the differential switch in charge pump 470 to make pump true and pump false P-channel MOS transistors 676 and 678 turn on and off.

Transistors 676, 677, 678 and 679 are small transistors because they are used for merely transferring charge from capacitor Cpump to capacitor C_(OUT) and not for supplying gain. Typically, the first pump signal phase exists much longer than the second pump signal phase (for example, 31 to 1) so that most of the cycle is used for precharging the charge pump capacitor Cpump.

The switched capacitor charge pump 670 thus is a capacitive voltage divider from the power supply source VDD to the ground reference VSS. Switched capacitor charge pump 670 is preferential for high temperature operation because leakage arises only with respect to two transistors--the transistors that form the second transfer gate 674. Also, small transistors are utilized and thus junction leakage at high temperatures is correspondingly less. In a charge pump embodiment such as charge pump circuit 470 shown in FIG. 2, which does not utilize transfer gates, transistors are necessarily larger and leakage of the transistors causes drift to occur on the pump voltage stored on the charge pump capacitor Cpump. This voltage drift produces frequency changes during the ramp interval, introducing error in the self-calibration process.

Referring again to FIG. 5(a), the signal on the charge pump output line CPOUT is applied to the gate of P-channel MOS transistor (MP3) 604 to control the current passing through the source to drain pathway from power supply source VDD to a ramp input signal IRAMP of oscillator 680. Referring to FIG. 5(d), a schematic circuit diagram of an oscillator 680 is shown. Oscillator 680 is similar to the VCO 480 shown in FIG. 4 except that the oscillator 680 is generally simplified by removing a voltage-to-current converter and a current mirror, neither of which is utilized since the oscillator 680 receives a current directly from P-channel MOS transistor (MP3) 604. In accordance with the operation of the switched capacitor charge pump circuit 670 described hereinbefore relating to FIG. 5(c), the current passed to oscillator 680 through P-channel MOS transistor (MP3) 604 is adjusted by the switched capacitor charge pump circuit 670 to produce the amount of current for driving the oscillator 680 to oscillate at a selected frequency. Elimination of the voltage-to-current converter and current mirror results in a nonlinear but monotonic transfer characteristic between the charge pump 670 and the frequency of the oscillator 680. However, this nonlinear characteristic does not impair performance if the capacitor ratio of C_(pump) to Cout is sufficiently small.

The ramp input signal IRAMP of oscillator 680 is also supplied by a current passing through the source to drain pathway of P-channel MOS transistor (MP4) 602 from power supply source VDD under control of the P-bias line 620 from the bias circuit 610. P-channel MOS transistor (MP4) 602 supplies a relatively small amount of current to activate the oscillator 680 when power is first applied to the RC oscillator 600. Transistor 602 is necessary to guarantee a minimum frequency, because if the voltage on CPOUT is close to VDD, the frequency of oscillator 680 is zero. Then the overall circuit remains in lockup.

Referring to FIG. 5(e), there is shown a current-steering ramp and hold circuit 630 which is substantially equivalent in structure and function to the ramp and hold circuit shown in FIG. 2. The ramp and hold circuit 630 advantageously extends over only a small area.

In FIG. 5(f), frequency counter 690 is a 16-count nonsynchronous (ripple) counter which includes two input inverters 691, four D-type flip-flops 692, 693, 694 and 695, a four-input NOR gate 696, and five output inverters 697.

An input clock signal on clock signal line CLKIN is applied from the oscillator 680 sequentially through the two input inverters 691 to double buffer the clock signal, thereby squaring the edges of the signal. The squared clock signal is applied to a C-input terminal of a first D flip-flop 692. First D flip-flop 692 also has a Q-output terminal and a D-input terminal which is connected to the Q-output terminal in a typical toggle flip-flop configuration so that on every positive edge of the squared clock signal, the first D flip-flop 692 changes state. Each succeeding D flip-flop 693, 694 and then 695 is similarly interconnected so that the C-input terminal is connected to the Q-output terminal of the immediately preceding D flip-flop and the D input-terminal and Q-output terminal of each D flip-flop are interconnected. Configured in this manner, the frequency counter 690 generates a first stage clock signal at a frequency of half the input clock signal frequency, a second stage clock signal at a frequency of one-quarter the input clock signal frequency, a third stage clock signal at a frequency of one-eighth the input clock signal frequency and a fourth stage clock signal at a frequency of one-sixteenth the input clock signal frequency. The complementary Q and Q output terminals of the third D flip-flop 694 are connected to output inverters 697 to respectively generate a ramp false signal on RAMPF line and a ramp true signal on RAMP line. The Q output terminal of the fourth D flip-flop 695 is connected to an output inverter 697 to generate a capacitor discharge signal on RAMP0 line. NOR gate 696 receives an output signal from each of the D flip-flops 692, 693, 694 and 695. In the embodiment illustrated in FIG. 5(f), the Q-output terminals of D flip-flops 692, 693 and 694 and the Q-output terminal of D flip-flop 695 are applied to the four-input NOR gate 696. The connection of D flip-flop output terminals is generally arbitrary so that any selected state of the four D flip-flops may be used to activate the pump true signal on PUMPT line and the pump signal on PUMPF line. The output line of the four-input NOR gate 696 is applied to a first output inverter 697 to generate the pump false signal on PUMPF line. The pump false signal on the PUMPF line is applied to a second output inverter 697 to generate the pump true signal on PUMPT line. The number of D flip-flops in the counter determines the duty cycle of the pump true and pump false signals so that an increased number of D flip-flops furnishes a shorter pump interval. A short pump signal duty cycle allows better resolution of parameter measuring and reading times so that the pump capacitor is not charging while it is read. Low resolution of measuring and reading cause a risk of oscillator instability due to operation in a continuous time feedback loop.

In general, the number of D flip-flops utilized in a frequency counter is determined according to timing constraints of particular circuit element embodiments of an RC oscillator. Various RC oscillator embodiments include different combinations of digital and analog elements. Typically, analog operations are performed at low frequency to improve accuracy and digital operations are performed at a high frequency to extend operation of the loop to high frequencies. Additional D flip-flops are used to increase precision of timing interval resolution. Although, the frequency counter 690 is depicted as a nonsynchronous (ripple) counter other suitable frequency counter embodiments employ a synchronous counter.

Referring to FIGS. 6(a) through 6(g), there is shown a schematic block diagram of a digitally-tuned oscillator circuit 702, which includes an RC oscillator circuit 700 and a capacitor digital to analog converter (DAC) 704.

The capacitor DAC 704 shown in FIG. 6(b) includes five digital data input lines D1-D5, five pairs of serially-connected inverters 705, five switches 706 receiving signals from the inverter pairs and a binary array of capacitors 708. Each digital data input line is connected to a pair of serially-connected inverters so that each of the digital data input lines D1-D5 is double buffered. Complementary signals for each digital data input line are furnished at a "true" signal output terminal connected following the second inverter of the pair of inverters and at a "false" signal output terminal connected following the first inverter of the pair. A first pair of serially-connected inverters 705 applies complementary binary control signals to a first switch which connects a first capacitor array of one capacitor unit between a DAC output terminal DACOUT and a ground reference VSS. A second pair of serially-connected inverters 705 applies complementary binary control signals to a second switch which connects a second capacitor array of two capacitor units, between the DAC output terminal DACOUT and ground reference VSS. Similarly, a third pair of inverters 705 connects a third array of four capacitor units, a fourth pair of inverters connects a fourth array of eight capacitor units, and a fifth pair of inverters connects a fifth array of sixteen capacitor units. In addition an additional capacitor CMIN is connected between VSS and DACOUT to furnish a minimum capacitance when no switches are closed. Capacitor CMIN sets the maximum frequency of the digitally-tuned oscillator 702 and additional capacitors 708 are switched into the capacitor DAC circuit 704 by switches 706 to increase the capacitance and decrease the operating frequency of the digitally-tuned oscillator 702. Each switch includes a P-channel transistor and an N-channel transistor connected on a transfer gate.

RC oscillator circuit 700, shown in FIG. 6(c) includes a low voltage bias circuit 710, a ramp and hold circuit 730, a comparator 750, a charge pump 670, an oscillator 680 and a frequency counter 790. The low voltage bias circuit 710 is a special low voltage bias circuit which generates a bias current in a substantially similar manner to that of the bias circuit 610 shown in FIG. 5(b) and makes this bias current sensitive to an external resistor Rext. The bias circuit 710 provides two bias voltages, a CMP bias for the comparative and a P-bias for all other functions. The transfer-gate based ramp and hold circuit 730 differs from the current-steering ramp and hold circuit 630 shown in FIG. 5(e) and utilizes full transfer gates, which operate with less power supply voltage than a ramp and hold using a differential current switch. This transfer gate implementation reduces some of the error introduced by charge injection in the circuit. The charge pump 670, oscillator 680 and P-channel MOS transistors (MP4) 602 and (MP3) 604 of the RC oscillator circuit 600 of FIGS. 5(a) through 5(f) are sufficiently low-voltage circuits without modification and, thus are duplicated in the digitally-tuned oscillator 702.

Referring to FIG. 6(d), the low voltage bias circuit 710 is similar to the bias circuit 610 in function and structure but includes modifications to improve performance in low voltage operations. A P-channel MOS transistor (MP1) 711 is a diode-connected field effect transistor (FET) and thus typically produces a non-linear current/voltage characteristic. Transistor (MP1) 711 has long gate length and a narrow gate width, causing a reduction in the amount of current produced so that a small current is generated for a voltage applied to the gate. Thus, transistor (MP1) 711 functions as a resistor but advantageously does not require the large area of a resistor. The small current generated by the P-channel MOS transistor (MP1) 711 passes through a transfer gate 712 to charge the drain capacitance of an N-channel MOS transistor (MN1) 713 and the gate to source capacitance of an N-channel MOS transistor (MN2) 714.

N-channel MOS transistor (MN1) 713 has a gate terminal that is connected to ground reference VSS through a resistor RCMP and therefore is initially turned off. As the drain capacitance of N-channel MOS transistor (MN1) 713 is charged, the transistor remains off but the drain voltage increases. Similarly, as the gate to source capacitance of N-channel MOS transistor (MN2) 714 is charged, the transistor turns on and the gate to source voltage increases so that transistor (MN2) 714 forms a source follower which raises the voltage on resistor RCMP. The voltage across resistor RCMP increases until an equilibrium condition arises in which the drain current on transistor (MN1) 713 is equal to the drain current of P-channel MOS transistor (MP1) 711. An equilibrium condition is achieved since any current imbalance continues to charge or discharge the gate of MOS device (MN2) 714 until equilibrium occurs.

Thus, a steady state DC voltage is formed across resistor RCMP having a magnitude substantially equal to the gate to source voltage of N-channel MOS transistor (MN1) 713 that arises when the drain current from P-channel MOS transistor (MP1) 711 passes through the source to drain pathway of N-channel MOS transistor (MN1) 713. The magnitude of this DC voltage is typically above threshold of the transistor (MN1) 713.

When the steady-state voltage across resistor RCMP becomes greater than the threshold voltage of transistor (MN1) 713, then a current passes through resistor RCMP. That current necessarily arises from a P-channel MOS transistor (MP2) 715 which provides the only DC current path to resistor RCMP. The magnitude of the current passing through resistor RCMP is determined by the threshold voltage of transistor (MN1) 713 and the amount of gate drive sufficient to sink the current from P-channel MOS transistor (MP1) 711. Thus the voltage across resistor RCMP is equal to the gate to source voltage of transistor (MN1) 713 and the current through resistor RCMP is passed to transistor (MP2) 715. A current mirror is formed by a P-channel MOS transistor (MP3) 716 and transistor (MP2) 715.

An arrangement of transistors including P-channel MOS transistors (MP3) 716 and (MP4) 717 and N-channel MOS transistors (MN3) 718 and (MN4) 719 is substantially the same in structure and function as the transistor structure of P-channel MOS transistors (MP1) 711 and (MP2) 715 and N-channel MOS transistors (MN1) 713 and (MN2) 714 except that the source of N-channel MOS transistor (MN2) 714 is connected to on-chip resistor RCMP while the source of N-channel MOS transistor (MN2) 719 is connected to external resistor Rext which sets the frequency of the RC oscillator 700.

N-channel MOS transistor (MN3) 718 operates in a steady-state in substantially the same manner as transistor (MN1) 713 so that the gate to source voltage of N-channel MOS transistor (MN3) 718 reaches a magnitude, typically slightly above threshold, which is sufficient to activate N-channel MOS transistor (MN3) 718 and to sink the current coming from P-channel MOS transistor (MP3) 716. A steady-state current flows through P-channel MOS transistor (MP3) 716 and N-channel MOS transistor (MN3) 718 also in a self-biasing arrangement. The gate voltage of N-channel MOS transistor (MN4) 719 continues to charge-until the drain current of N-channel MOS transistor GRIN3) 718 is substantially equal to the drain current of P-channel MOS transistor (MP3) 716. The voltage across external resistor Rext is slightly greater than the threshold of N-channel MOS transistor (MN3) 718. The voltage across external resistor Rext is equal to the gate to source voltage of transistor (MN3) 718 and the current through external resistor Rext is passed to transistor (MP4) 717. A current mirror is formed by a P-channel MOS transistor (MPS) 720 and transistor (MP4) 717.

P-channel MOS transistor (MP5) 720 generates a ramp current IRAMP which is proportional to the current passing through P-channel MOS transistor (MP4) 717. The proportionality ratio of the current depends on the sizes of the transistors (MP4) 717 and (MPS) 720. In one embodiment, the gate width of transistor (MP4) 717 is 160 microns and the gate width of transistor (MPS) 720 is 20, so that the current mirror is an 8:1 attenuating current mirror and the ramp current IRAMP is divided by 8. Ramp current IRAMP is connected to the ramp and hold circuit 730, which is modified for low voltage operation as compared to ramp and hold circuits described hereinbefore. Low voltage bias circuit 710 also generates a comparator bias signal on a CMPBIAS line, which is connected to the comparator 750. The comparator bias signal is supplied at a node connecting the common drain terminals of P-channel MOS transistor (MP2) 715 and N-channel MOS transistor (MN2) 714.

Low voltage bias circuit 710 is inherently lower in operating voltage than the bias circuit 610 shown in FIG. 5(b). However, this improvement is achieved at the cost of duplicating some circuitry. The low operating voltage is useful in battery-powered laptop computer applications where a very low current draw is advantageous. The low operating voltage is also useful in systems using submicron CMOS integrated circuits which must use supply voltage of 3 V or less to avoid hot carder degradation.

Referring to FIG. 6(e), there is shown a ramp and hold circuit 730 which is similar to the ramp and hold circuit shown in FIG. 5(e) except that ramp and hold circuit 730 includes additional transistors for improved performance in low-voltage applications. Ramp and hold circuit 730 includes a ramp and hold differential switch 732 and a ramp and hold N-channel transistor (MNRST) 736. The ramp and hold differential switch 732 includes a first transfer gate structure 733 having a first transfer gate P-channel MOS transistor (MP1) 735 and a first transfer gate N-channel MOS transistor (MN1) 737, and a second transfer gate structure 734 having a second transfer gate P-channel MOS transistor (MP2) 738 and a second transfer gate N-channel MOS transistor (MN2) 739. First and second transfer gate N-channel MOS transistors (MN1) 737 and (MN2) 739 are respectively connected across P-channel MOS transistors (MP1) 735 and (MP2) 738. The gates of first transfer gate P-channel MOS transistor (MP1) 735 and second transfer gate N-channel MOS transistor (MN2) 739 are connected to a ramp true signal line RAMPT. The gates of first transfer gate N-channel MOS transistor (MN1) 737 and second transfer gate P-channel MOS transistor (MP2) 738 are connected to a ramp false signal line RAMPF.

The two P-channel transistors (MP1) 735 and (MP2) 738 operate as switches for controlling conduction of a ramp current IIN from the bias circuit 710, which acts as a constant current source. Ramp true signal line RAMP and ramp false signal line RAMPF are applied to the gate terminals of the transistors 735, 737, 738 and 739 to steer the current from the bias circuit 710 through the first and second transfer gates 733 and 734.

The first and second transfer gates 733 and 734 improve RC oscillator 700 performance in low voltage applications, in which the voltage across the source to drain pathway of P-channel transistors (MP1) 735 and (MP2) 738 is small, and for further reduced voltages, a nonzero source-to-drain voltage drop across the transistors 735 and 738 forms. Without the transfer gates, at very low voltages the drain voltage of current source transistor (MPS) 720 supplying ramp current IRAMP is no longer less than the gate voltage of that transistor. As such, the current source transistor (MP5) 720 in the bias circuit 710 no longer operates in saturation and begins ohmic region operation, substantially impairing performance of the RC oscillator 700. To avoid this condition, the voltage drop across the P-channel transistors (MP1) 735 and (MP2) 738 is reduced to a minimum value through the operation of the transfer gate structures 732 and 734 to steer the current from the bias circuit 710 rather than driving the current through the operation of P-channel transistors alone.

Referring to FIG. 6(f), a comparator 750 includes a P-channel MOS transistor (MP1) 752 and an N-channel MOS transistor (MN1) 754, which are connected at their drain terminals between the power supply source VDD and a ground reference VSS. The gate of the P-channel MOS transistor (MP1) 752 is controlled by a comparator bias signal on CMPBIAS line from the low voltage bias circuit 710. The drain terminals of the transistors (MP1) 752 and (MN1) 754 are connected to a first inverter 756 which is further connected to a second inverter 758 to generate a comparator true signal on a CMPT line and a complementary comparator false signal on a CMPF line.

The switching threshold voltage of transistors (MN1) 754 and (MP1) 752 is set by the comparator bias current on the CMPBIAS line from the low voltage bias circuit 710. In low voltage bias circuit 710, the switching threshold of N-channel MOS transistor (MN3) 718 and P-channel MOS transistor (MP3) 716 is a voltage which is sufficient to sink the current coming from P-channel MOS transistor (MP3) 716. The drain of transistor (MN3) 718 is connected to the drain of transistor (MP3) 716 and the gate terminal of transistor (MP3) 716 connected to the CMPBIAS line. As such, N-channel MOS transistor (MN3) 718 has a gate to source voltage that is established by the current across resistor RCMP that is driving the current mirror of P-channel transistors (MP2) 715 and (MP3) 716. That same bias current also forms the current mirror reference, P-channel MOS transistor (MP1) 752, in the comparator 750. As such the switching threshold of the comparator 750 is nearly equal to the gate to source voltage of transistor (MN3) 718 in the bias circuit 710.

By ratioing, using multiple devices in the bias circuit 710, the current drawn by the comparator 750 is significantly less than the current of low voltage bias circuit 710 due to the ratioing of the current mirrors discussed with reference to the operation of the low voltage bias circuit 710.

The external resistor Rext is implemented in various resistances to specify an operating frequency between a minimum and maximum operating frequency for various applications of the RC oscillator 700. The magnitude of the current passing through the external resistor Rext depends on the implemented resistance of external resistor Rext. The low voltage bias circuit 710 provides flexibility in the current flowing through the external resistor Rext for determining the frequency of oscillation. However, low voltage bias circuit 710 also utilizes the resistor RCMP to set up a small bias current to drive all of the other circuits in digitally-tuned oscillator 702, allowing operation at a very low current and a very low voltage.

In FIG. 6(g), frequency counter 790 is an 8-count nonsynchronous (ripple) counter which includes two input inverters 791, three D-type flip-flops 792, 793 and 794, two two-input NOR gates 796, and six output inverters 697. Although the frequency counter 790 is shown as an 8-count counter, other embodiments may utilize other numbers of counts such as 4, 12, 16 and other multiples of four to improve oscillator performance at different oscillator frequencies.

The two two-input NOR gates each have only two input terminals for low voltage operation. The number of input terminals on any one logic gate is set to a minimum so that the circuit operates at a lower voltage. Thus, in any position at which a multiple-input NOR gate may be implemented, multiple two-input NOR gates are substituted to reduce the operating voltage specification of the frequency counter 790.

Frequency counter 790 is otherwise similar to the frequency counter 690 shown in FIG. 5(f), generating the same output signals. For example, a capacitor discharge signal on RAMP0 line is the inverse of the false output of the last stage D flip-flop 794 and the ramp false signal on RAMPF line and the ramp true signal on RAMPT line are buffered complementary outputs of the penultimate stage D flip-flop 793.

Referring to FIGS. 7(a) and 7(b) there is shown an RC oscillator 1100 which features rapid frequency settling and stabilization on power-up from a power down condition. The rapid stabilization characteristic advantageously facilitates a quick response during recovery from power-down mode.

RC oscillator 1100 includes a bias circuit 610, two monostables 1120 and 1122, a ramp and hold circuit 630, a comparator 750, a charge pump 670, a digital to analog converter (DAC) 1160, an oscillator 680 and a frequency counter 1190. RC oscillator 1100 is generally similar to the circuits shown in FIGS. 5(a) through 5(f) and FIGS. 6(a) through 6(g) except that the RC oscillator 1100 includes a circuit for performing rapid oscillator stabilization. The rapid oscillator stabilization function is furnished through the operation of the two monostables 1120 and 1122 and DAC 1160.

It is inherent in an oscillator that a lengthy interval transpires before the oscillator timing reaches a stable operating frequency following application of operating power. This characteristic is inherent in all oscillators, such as high Q LC oscillators or extremely high Q crystal oscillators, for example. In LC oscillators and crystal oscillators, slow stabilization results from the high Q of the oscillator circuit. In oscillator 680, slow stabilization also results from a high Q, however the high Q does not result from a high Q of the oscillator circuit but rather is a synthesized high Q that results from the number of counts counted by the frequency counter 1190 to complete a complete counting cycle.

Oscillator 680 produces a timing signal which is applied to the frequency counter 1190. The frequency counter 1190 counts multiple timing cycles of this timing signal to complete one counting cycle. For example, in the illustrative embodiment, frequency counter 1190 counts 128 oscillator cycles in one counter cycle. At the end of a counter cycle, the frequency counter 1190 signals the charge pump 670 to evaluate the frequency of the RC oscillator 1100. Thus, the high number of timing cycles generated by oscillator 680 to complete one counting cycle of the frequency counter 1190 contributes a high synthetic Q to the RC oscillator circuit 1100. In addition, charge pump 670 adds more Q by virtue of its small step size. The smaller the step size in the charge pump 670, the smaller the quantum step size that the charge pump 670 produces. In RC oscillator circuit 1100, the synthetic high Q of the oscillator 680 and frequency counter 1190 combine with the physical high Q of the charge pump 670 so that an extremely high effective Q is produced. The extremely high effective Q advantageously results in a highly accurate oscillating frequency and an extreme insensitivity to noise. However, the extremely high effective Q also results in a high inertia of oscillation so that, once the oscillator is stopped, the inertia of the oscillator delays attainment of a stable operating frequency when the oscillator is activated. A digital signal is applied to terminate power to the oscillator 680 so that it is quickly stopped, but the inertia of the extremely high effective Q prevents a rapid reactivation of the oscillator. Therefore, without having a circuit component which accelerates stabilization, the counter has to count numerous oscillator cycles for the oscillator 680 to start and accurately stabilize at a predetermined oscillator frequency.

In laptop computers and low power computers, a power-down mode is an important feature to conserve power, particularly in battery-powered operation. In the power-down mode, power is not completely removed from a microprocessor chip. Rather the chip is left enabled but is placed in an idle state in which little power is consumed. A large amount of power is conserved in power-down mode by deactivation of the oscillator. However, a problem arises when power-down mode ends. If the oscillator takes too long to stabilize, the user of a laptop or low-power computer may perceive the slow response as an error in a function controlled by the oscillator. Therefore, it is highly advantageous to furnish a capability to respond quickly during recovery from power-down mode.

Various circuits of the RC oscillator 1100 furnish a capability to recover quickly from a power-down condition. A P-channel MOS transistor (MP1) 1130 is connected to an input terminal of oscillator 680 and generates a current that drives the oscillator 680. Oscillator 680 produces a timing signal having a frequency that depends on the magnitude of the current applied to the input terminal. A quick recovery from the power-down condition is achieved by applying an "initial condition" voltage to the gate of P-channel MOS transistor (MP1) 1130. This initial condition voltage is the operating voltage applied to the gate of P-channel MOS transistor (MP1) 1130 when the oscillator is stable prior to entering the power-down mode. The initial condition voltage is applied to the gate terminal of P-channel MOS transistor (MP1) 1130 so that the drain current replicates the drain current that was previously applied to the oscillator 680 when the oscillator was operating before power-down mode began. So long as the temperature of the circuit has not appreciably changed since the time power-down was invoked, the operating frequency generated by the oscillator 680 is restored substantially to the precise operating frequency in effect previous to the power-down mode operation. Thus, the RC oscillator 1100 functions as though it were precharged precisely to its previous operating point.

One technique for initializing RC oscillator 1100 after power-down is to connect a large capacitor (not shown) on the gate terminal of P-channel MOS transistor (MP1) 1130 to hold the voltage to the amplitude existing prior to power-down. However, large capacitors are expensive and difficult to construct on an integrated circuit chip. Furthermore, the time duration of power-down is not known and is possibly lengthy so that junction leakage is likely to remove the charge on the capacitor. Typical integrated circuit capacitors commonly are discharged within two to twenty seconds.

An alternative technique for initializing RC oscillator 1100 after power-down is to save a representation of the voltage applied to the gate terminal of P-channel MOS transistor (MP1) 1130 prior to power-down.

Activation and deactivation of power-down mode is controlled in accordance with signals furnished by the monostables 1120 and 1122. An externally-generated power-down line PD is connected to an input terminal of the first monostable 1120 to furnish a power-down signal. First monostable 1120 is a positive-edge driven monostable which receives a logic 1 power-down signal of indefinite duration at the input terminal and generates a positive pulse of a fixed duration, generally shorter than the duration of the power-down signal, at an output terminal. The fixed-duration power-down output signal from the first monostable 1120 is applied to a reset terminal of the frequency counter 1190 for resetting the count of the frequency counter 1190.

Power-down line PD is connected to an inverter 1124 which produces a power-down-not signal on an inverted power-down line PD. The inverted power-down line PD is connected to an input terminal of the second monostable 1122. Second monostable 1122 is a positive-edge driven monostable which receives a logic 1 power-down-not signal on inverted power-down line PD of indefinite duration at the input terminal and generates a positive pulse of a fixed duration, a duration which is generally shorter than the duration of the power-down-not signal, at an output terminal connected to a restart line ZT. The restart signal on line ZT is generally a logic 0 signal, which goes to a logic 1 at a negative edge on power-down. The restart signal on restart line ZT is connected to an inverter 1126 which produces an inverted-restart signal on inverted restart line ZF.

Referring to FIG. 7(b), there is shown a transistor-level schematic diagram of an embodiment of each of first and second monostables 1120 and 1122, a monostable multivibrator one-shot 1110. Monostable multivibrator one-shot 1110 is constructed from a multivibrator with a resistor-capacitor delay. Monostable 1110 has an input terminal connected to a first CMOS inverter 1111. First CMOS inverter 1111 drives the gate of an N-channel MOS transistor 1112. When the input signal to the monostable 1110 changes from a logic 0 to a logic 1, the signal from the first CMOS inverter 1111 changes from a logic 1 to a logic 0, turning off the N-channel MOS transistor 1112. The drain of the N-channel CMOS transistor 1112 is connected to the drain of a P-channel CMOS transistor 1113, respectively forming a current source pull-down current sink and pull-up current source arrangement. Therefore, as N-channel CMOS transistor 1112 is turned off, the drain of N-channel CMOS transistor 1112 changes in a somewhat linear manner from a logic 0 to a logic 1, eventually generating a voltage greater than the threshold voltage of a second CMOS inverter 1115. The output signal of second CMOS inverter 1115 then changes from a logic 1 to a logic 0 but does so after a delay from the time the input signal is applied to the input terminal of the monostable 1110. The input signal and the output signal from the second CMOS inverter 1115 are applied to a CMOS NAND gate 1116, which produces a logic 0 only if both input signals are a logic 1. Thus, NAND gate 1116 generates a logic 0 signal essentially due to this delay interval which has a known duration. The output signal of the monostable 1110 is generated by inverting the output of the CMOS NAND gate 1116 using a third inverter 1117.

FIG. 7(c) is a timing diagram which illustrates the internal timing of the monostable 1110. Waveform 1105 shows the input signal to the monostable 1110. Waveform 1106 illustrates the delayed signal which is produced by the second CMOS inverter 1115. Waveforms 1105 and 1106 are applied to the NAND gate 1116, which produces waveform 1107. Waveform 1107 is inverted by third inverter 1117 to produce the output signal 1108 from the monostable 1110.

Referring again to FIG. 7(a), digital to analog converter (DAC) 1160 includes N-channel MOS transistors (MN0) 1162, (MN1) 1163, (MN2) 1164, (MN3) 1165, (MNS1) 1166, (MNS2) 1167, and (MNS3) 1168. P-channel MOS transistor (MP0) 1161 has a source terminal connected to the supply reference VDD and a gate connected to the pbias line from the bias circuit 610 for biasing. N-channel MOS transistor (MN0) 1162 is diode-connected with interconnected drain and gate terminals which are connected to a drain terminal of P-channel MOS transistor (MP0) 1161 and a source terminal which is connected to the ground reference VSS. P-channel MOS transistor (MP0) 1161 establishes a bias current and applies the bias current to N-channel MOS transistor (MN0) 1162. N-channel MOS transistor (MN0) 1162 then mirrors that current to other N-channel MOS transistors ((MN1) 1163, (MN2) 1164, (MN3) 1165) in DAC 1160. N-channel MOS transistors (MN1) 1163 and (MNS1) 1166 are connected in series with the gate of transistor (MN1) 1163 connected to the gate of N-channel MOS transistor (MN0) 1162 and the gate of transistor (MNS1) 1166 connected to the Q0 terminal, the least significant bit of frequency counter 1190. N-channel MOS transistors (MN2) 1164 and (MNS2) 1167 are connected in series with the gate of transistor (MN2) 1164 connected to the gate of N-channel MOS transistor (MN0) 1162 and the gate of transistor (MNS1) 1166 connected to the Q1 terminal, the next least significant bit of frequency counter 1190. N-channel MOS transistors (MN3) 1165 and (MNS3) 1168 are connected in series with the gate of transistor (MN3) 1165 connected to the gate of N-channel MOS transistor (MN0) 1162 and the gate of transistor (MNS1) 1168 connected to the Q2 terminal, the next least significant bit of frequency counter 1190.

Lines from the Q0, Q1 and Q2 terminals of frequency counter 1190 convey a three-bit code to DAC 1160, selecting activation or deactivation of N-channel MOS transistors (MNS1) 1166, (MNS2) 1167 and (MNS3) 1168 functioning as switches. Respective to the switches, N-channel MOS transistors (MN1) 1163, (MN2) 1164 and (MN3) 1165 function as current mirrors of the bias current. N-channel MOS transistors (MN1) 1163, (MN2) 1164 and (MN3) 1165 are relatively sized to have respective binary-weighted multiplication factors of 1×, 2×and 4×. Other embodiments of the DAC 1160 are constructed with additional (or fewer) switches so that bit-codes of various sizes are used to select a current for application to the oscillator 680.

The output terminal of the DAC 1160, which is a drain node connecting the drain terminals of N-channel MOS transistors (MN1) 1163, (MN2) 1164 and (MN3) 1165, is connected to a drain terminal of P-channel MOS transistor (MP1X) 1132 to convey an output signal of the DAC 1160 to the oscillator 680. When the digital code applied to the DAC 1160 generates a pull-down output current that exceeds the pull-up drain current of P-channel MOS transistor (MP1X) 1132, the voltage on the drain goes to a logic 0 potential. Otherwise, the voltage on the drain of P-channel MOS transistor (MPlX) 1132 is a logic 1.

P-channel MOS transistors (MP1) 1130 and (MP1X) 1132 are matched transistors, each having a source terminal connected to the supply reference VDD and a gate terminal connected to the output terminal of charge pump 670. However, P-channel MOS transistors (MP1) 1130 and (MP1X) 1132 differ in drain connections in that the drain of transistor (MP1X) 1132 drives the DAC 1160 and the drain of transistor (MP1) 1130 is connected to drive the input terminal of the oscillator 680. The drain terminal of transistor (MP1) 1130 is connected to a drain terminal of N-channel MOS transistor (MNSX) 1138 as well as the input terminal of oscillator 680. In contrast, the drain terminal of transistor (MP1X) 1132 is connected to an input terminal of a NOR gate 1136 as well as to the drain terminals of N-channel MOS transistors (MN1) 1163, (MN2) 1164 and (MN3) 1165. The gate and drain terminals of P-channel MOS transistor (MP1X) 1132 are selectively connected by a switch, a complementary CMOS transfer gate 1134.

Transfer gate 1134 is controlled by a signal on restart line ZT which is connected to a positive input terminal of transfer gate 1134 (the gate of an N-channel transistor, not shown, of the transfer gate) and by a signal on inverted restart line ZF which is connected to a negative input terminal of transfer gate 1134 (the gate of P-channel transistor, not shown, of the transfer gate).

Two lines are connected to input terminals of NOR gate 1136, the aforementioned line from the drain terminal of P-channel MOS transistor (MP1X) 1132 and a line carrying an inverted power-down signal PD. Unless the power-down signal is asserted, the inverted power-down signal applied to NOR gate 1136 prevents the logic signal at the drain of P-channel MOS transistor (MP1X) 1132 from affecting the operations of the remainder of the RC oscillator circuit 1100.

The output terminal of NOR gate 1136 is connected to the gate terminal of N-channel MOS transistor (MNSX) 1138 and to an input terminal of a NOR gate 1140. NOR gate 1140 is a three-input NOR gate receiving input signals from restart line ZT and the timing output line of oscillator 680 (FOUT) as well as from the output line of NOR gate 1136. NOR gate 1140 passes the timing signal from the oscillator 680 to the frequency counter 1190 unless the timing signal is blocked by signals on the restart line ZT and the inverted power-down line PD.

As the frequency counter 1190 counts an increasing binary sequence, the sum of drain currents produced by transistors in DAC 1160 eventually reaches a current that exceeds the drain current of P-channel MOS transistor (MP1X) 1132 so that the voltage at the drain transitions from a logic 1 state to a logic 0 state. When RC oscillator 1100 is operating in a standard mode, rather than the power-down mode, the frequency counter 1190 is continuously counting and the output drain current of DAC 1160 is ramping up and falling as the counts increase and wrap back to zero. As the output drain current of DAC 1160 oscillates above and below the drain current of P-channel MOS transistor (MP1X) 1132, the drain voltage of transistor (MP1X) 1132 bounces between logic 0 and logic 1 levels. When the power-down signal is not asserted, the inverted power-down signal applied to NOR gate 1136 prevents the logic signal at the drain of P-channel MOS transistor (MP1X) 1132 from affecting the operations of the remainder of the RC oscillator circuit 1100. When the power-down signal goes high, inverter 1124 produces a logic 0 power-down-not signal on an inverted power-down line PD. The logic 0 power-down-not signal is applied to an input terminal of NOR gate 1136, thereby enabling NOR gate 1136 to become sensitive to a transition in logic signal at the drain of P-channel MOS transistor (MP1X) 1132.

Under typical operating conditions, the power-down signal on external power-down line PD is a logic 0 and RC oscillator 1100 has been operating at a selected stable oscillation frequency. At some time, for example, the power-down signal is changed from a logic 0 to a logic 1 potential. The power-down signal is applied to the first monostable 1120, generating a reset signal which is communicated to the reset terminal of the frequency counter 1190. The power-down signal occurs asynchronously with respect to timing of the RC oscillator 1100 so that the frequency counter 1190 may be at any point in the 128 count cycle. The reset signal resets the binary count of the frequency counter 1190 and the counter begins counting up through a binary sequence.

Resetting of the frequency counter 1190 count by the power-down signal causes the signals on the lines from the Q0, Q1 and Q2 terminals of the frequency counter 1190 to DAC 1160 to go to zero, thereby turning off the DAC 1160 current sources. However, P-channel MOS transistor (MP1X) 1132 continues to receive a gate potential from the charge pump 670 and thereby continues to produce a drain current, quickly charging the drain to a high voltage because all DAC 1160 current sources are deactivated. This logic 1 output of P-channel MOS transistor (MP1X) 1132 is applied to one input terminal of the NOR gate 1136. The other input terminal of the NOR gate 1136 is the power-down-not signal on line PD, a logic 0 in the power-down mode. Therefore, the initial condition in the power-down mode of NOR gate 1136 is an inactive state, the same as the state in the normal operating mode. Nothing is done immediately in the power-down mode to stop the oscillator 680. The oscillating output signal of the oscillator 680 on FOUT line is applied to one input terminal of the NOR gate 1140. A second input signal to the NOR gate 1140 is the logic 0 from NOR gate 1136 and a third input signal is a logic 0 signal on restart line ZT. Accordingly, at this time, the timing signal from the oscillator 680 is passed by NOR gate 1140 to the input terminal of the frequency counter 1190. Thus, frequency counter 1190 counts from 0 after the power-down reset, gradually turning on bits of the DAC 1160 and causing the DAC 1160 to generate a staircase current waveform. Eventually a count is reached at which sufficient current is generated by the DAC 1160 current sources that the DAC 1160 sinks the drain current of P-channel MOS transistor (MP1X) 1132 causing the transistor (MP1X) 1132 output logic signal to change from logic 1 to logic 0. Accordingly, the output signal of NOR gate 1136 changes to a logic 1 and, by application of a logic 1 to NOR gate 1140, stops the clock signal from the oscillator 680 to frequency counter 1190, terminating counting by frequency counter 1190.

The logic 1 signal at the output terminal of NOR gate 1136 is also applied to the gate of an N-channel MOS transistor (MNSX) 1138, turning on the transistor (MNSX) 1138 and pulling the drain current supplied by P-channel MOS transistor (MP1) 1130 away from the input terminal of oscillator 680 so that the input signal to the oscillator 680 is pulled low.

The output line of NOR gate 1136 is also connected to an input terminal of an inverter 1142. The output terminal of inverter 1142 is connected to the gate of a P-channel MOS transistor (MPSX) 1144, which has a source to drain pathway between the power supply source VDD and the output terminal of the charge pump 670. The logic 1 signal at the output terminal of NOR gate 1136 generates a logic 0 at the output terminal of inverter 1142, which is applied to the gate of P-channel MOS transistor (MPSX) 1144, turning on transistor (MPSX) 1144 and pulling the output voltage of the charge pump 670 to the level of the power supply voltage VDD. The output voltage of the charge pump 670, now a logic 1, is applied to the gate terminals of P-channel transistors (MP1X) 1132 and (MP1) 1130, cutting off the drain current of both transistors (MP1X) 1132 and (MP1) 1130. Thus, the drain current of P-channel MOS transistor (MP1X) 1132 is turned off, so that no pull-up current is applied to the drain of the DAC 1160, and the DAC 1160 continues to receive a digital signal from frequency counter 1190 terminals Q0, Q1 and Q2. This digital signal reflects the state of the frequency counter 1190 at the last count prior to termination of the timing signal from oscillator 680 by the signal on restart line ZT and the output signal of NOR gate 1136 applied to NOR gate 1140. DAC 1160 holds the last state of the frequency counter 1190 and continues to generate a pull-down current to pull down the drain node of P-channel MOS transistor (MP1X) 1132 although transistor (MP1X) 1132 no longer furnishes a pull-up current. Since the drain current of P-channel MOS transistor (MP1) 1130 is terminated, the input signal to the oscillator is removed so that the oscillator 680 is stopped.

As long as the signal on power down line PD remains a logic 1, the voltage at the gate of the oscillator 680 no longer changes, the frequency counter 1190 does not receive clock pulses from the oscillator 680 because the oscillator 680 no longer produces timing pulses and, in any case, NOR gates 1136 and 1140 block oscillator timing signals. Accordingly, frequency counter 1190 holds the count of the previous state for which the pull-down drain current generated by DAC 1160 substantially balances the pull-up drain current of P-channel MOS transistor (MP1X) 1132, which is matched to the drain current of P-channel MOS transistor (MP1) 1130. The frequency counter 1190 holds this count so long as operating power is supplied to the RC oscillator 1100 and the power down signal is a logic 1.

When the power down signal is set to a logic 0, terminating the power down state, the RC oscillator circuit 1100 is activated and the DAC 1160 immediately generates a current substantially equal to the current that was generated by P-channel MOS transistor (MP1X) 1132 prior to commencement of the power down state. Although the current at the drain of DAC 1160 is a pull-down current rather than a pull-up current, the current is substantially at the correct level to restore the operating frequency of oscillator 680.

When the power down signal on power-down line PD changes to a logic 0 from a logic 1 state, the restart signal on restart line ZT goes to a logic 1 value which is applied to transfer gate 1134 for the drain and gate terminals of P-channel MOS transistor (MP1X) 1132. At the same time, the inverted power down signal on power-down-not line PD changes to a logic 1, setting the output signal of NOR gate 1136 to a logic 0, which is applied to the gate of N-channel MOS transistor (MNSX) 1138 re-enabling the signal at the drain node of P-channel MOS transistor (MP1) 1130 and, therefore, the input signal to the oscillator 680.

The logic 0 signal from NOR gate 1136 is also applied to inverter 1142, which applies the inverted signal, a logic 1, to the gate of P-channel MOS transistor (MPSX) 1144. Transistor (MPSX) 1144 is thus turned off to prevent short-circuiting of the output drain current of DAC 1160. A biasing signal from the bias circuit 610 is applied to P-channel MOS transistor (MP0) 1161 and then to the gate terminals of the transistors in DAC 1160 to activate the DAC 1160. In response, DAC 1160 generates a pull-down current that is established by the digital code saved by the frequency counter 1190 during power down mode. The switch of transfer gate 1134 is closed, making P-channel MOS transistor (MP1X) 1132 a diode-connected transistor. The voltage produced at the gates of P-channel MOS transistors (MP1X) 1132 and (MP1) 1130 is substantially the same as the voltage which causes a current flow in the drain of P-channel MOS transistor (MP1) 1130 substantially equal to the drain current flowing immediately preceding invocation of power down mode.

Once transfer gate switch 1134 closes between the gate and drain terminals of P-channel MOS transistor (MP1X) 1132, the output capacitor (not shown) of the charge pump 670 is charged by the diode-connected P-channel MOS transistor (MP1X) 1132. The monostable 1122 generates a restart signal on the restart line ZT that is sufficient in duration to permit the charge pump 670 capacitor to charge. The charged capacitor in the charge pump 670 quickly re-establishes the drain current of P-channel MOS transistor (MP1X) 1132 which sets the drain current of P-channel MOS transistor (MP1) 1130. Oscillator 680 is thereby fully and quickly initialized to oscillate at substantially the same frequency of operation as the frequency preceding the onset of power down mode.

Referring to FIG. 8(a), there is shown a transistor-level schematic diagram of a clocked comparator circuit 1300 which has a quick response following a clock signal edge. In various embodiments of an RC oscillator, the clocked comparator circuit 1300 may be substituted for comparators such as comparator 650 shown in FIG. 5(a) and comparator 750 shown in FIGS. 6(c) and 6(f).

Clocked comparator 1300 is a fully differential comparator having both a positive input terminal and a negative input terminal. However, in various embodiments clocked comparator 1300 is suitable for implementation in any application. For example, clocked comparator 1300 is used as a single-input comparator simply by tying either the positive input terminal or the negative input terminal to a reference voltage terminal. The reference terminal to which the input terminal is tied and the polarity of the input terminal tied to the reference terminal are determined by the desired polarity of the output signal of the comparator 1300.

The clocked comparator 1300 is controlled using two control signals from an external frequency counter. One control signal is a clock signal which activates the comparator 1300. A second control signal is a zero signal which generates a timing phase that precedes the clock signal.

Clocked comparator 1300 includes a first inverter stage 1310, a second inverter stage 1320 and a third inverter stage 1330. The first inverter stage 1310 includes a P-channel MOS transistor (MP1) 1312 and an N-channel MOS transistor (MN1) 1314, each having a source to drain pathway connected in series between the power supply terminal VDD and the ground reference terminal VSS. P-channel MOS transistor (MP1) 1312 has a gate connected to the pbias line. The second inverter stage 1320 includes a P-channel MOS transistor (MP2) 1322 and an N-channel MOS transistor (MN2) 1324 each having a source to drain pathway connected in series between the power supply terminal VDD and the ground reference terminal VSS. P-channel MOS transistor (MP2) 1322 has a gate connected to the pbias line. N-channel MOS transistor (MN2) 1324 has a gate connected to a node connecting the drain terminals of transistors (MP1) 1312 and (MN1) 1314. The third inverter stage 1330 includes a P-channel MOS transistor (MP3) 1332 and an N-channel MOS transistor (MN3) 1334 each having a source to drain pathway connected in series between the power supply terminal VDD and the ground reference terminal VSS. Both P-channel MOS transistor (MP3) 1332 and N-channel MOS transistor (MN3) 1334 have gates connected to the node connecting the drain terminals of transistors (MP2) 1322 and (MN2) 1324. An output terminal OUT is connected to a node between the drain terminals of transistors (MP3) 1332 and (MN3) 1334.

A negative differential input terminal NEG is connected to the input capacitor Ccmp 1308 by a first transfer gate switch (SW1) 1302. A positive differential input terminal POS is connected to capacitor Ccmp 1308 by a second transfer gate switch (SW0) 1306. The positive POS and negative NEG differential input terminals of clocked comparator 1300 are switchable by switching the polarity of the clock and clock signals of the transfer gate switches (SW1) 1302 and (SW0) 1306. A zero phase control terminal ZERO is connected to a first control terminal of second transfer gate switch (SW0) 1306 and is connected to an inverter 1305 to furnish an inverted zero signal to a second control terminal of second transfer gate switch (SW0) 1306. The output terminal of capacitor Ccmp 1308 is connected to the gate of N-channel transistor (MN1) 1314. A third switch (SW2) 1304, when activated, provides a conductive path between the gate and drain of N-channel transistor (MN1) 1314.

Referring to the timing diagram shown in FIG. 8(b), operation of the clocked comparator 1300 is described. In timing phase TP1, the signal on the zero phase control terminal ZERO is a logic 0, second transfer gate switch (SW0) 1306 is open so that the positive differential input terminal POS is isolated from the rest of the clocked comparator 1300. The clock and clock signals to the transfer gate switches (SW1) 1302 and (SW2) 1304 are configured so that transfer gate switch (SW1) 1302 is open and transfer gate switch (SW2) 1304, which is always complementary to transfer gate switch (SW1) 1302, is closed. In this configuration N-channel MOS transistor (MN1) 1314 is diode-connected so that any current that is mirrored from transistor (MP1) 1312 operates to self-bias transistor (MN1) 1314 to a level very close to the switching threshold voltage of the first invertor stage 1310 transistors (MP1) 1312 and (MN1) 1314. This switching threshold voltage is the same as the gate to source voltage of N-channel MOS transistor (MN1) 1314. Furthermore, the gate to source voltage V_(GSN1) of N-channel MOS transistor (MN1) 1314 is essentially the same as the switching threshold voltage of second inverter stage 1320 transistors (MP2) 1322 and (MN2) 1324. Thus in timing phase TP1, the first and second inverter stages 1310 and 1320 have essentially equivalent operating conditions, having essentially the same switching threshold voltage. However, the second inverter stage 1320 has a relatively high gain while the first inverter stage 1310 has a small gain.

In timing phase TP2, the signal on the zero phase control terminal ZERO goes to a logic 1, causing inverter 1308 to have a logic 0 inverted zero phase signal. The logic 1 zero phase control signal ZERO and logic 0 inverted zero phase control applied to second transfer gate switch (SW0) 1306 close the second transfer gate switch (SW0) 1306, connecting the positive differential input at terminal POS to the gate of N-channel MOS transistor (MN1) 1314 and precharging the capacitor Ccmp.

In timing phase TP3, the clock and clock signals to the transfer gate switches (SW1) 1302 and (SW2) 1304 are switched so that transfer gate switch (SW1) 1302 is closed and transfer gate switch (SW2) 1304 is opened. The precharged capacitor Ccmp applies a voltage to the gate of N-channel MOS transistor (MN1) 1314 so that the gate to source voltage V_(GSN1) of N-channel MOS transistor (MN1) 1314 substantially matches the switching threshold of the first and second inverter stages 1310 and 1320.

In timing phase TP4, the zero signal is changed to open the second transfer gate switch (SW0) 1306. With the first transfer gate switch (SW1) 1302 closed and the third transfer gate switch (SW2) 1304 open, the first inverter stage 1310 is in a condition to switch unless the signal applied to the negative differential input terminal NEG precisely matches the voltage on the capacitor Ccmp. A nearly instantaneous movement, either high or low, of the drain voltage of N-channel MOS transistor (MN1) 1314 results from this condition. The direction of the drain voltage movement depends on the balance of voltages applied to the gate of N-channel MOS transistor (MN1).

Accordingly, any potential difference between the signals on the positive and negative differential input terminals POS and NEG causes the bias point of N-channel MOS transistor (MN1) 1314 to change from its natural bias point, causing the first inverter stage 1310, then the second inverter stage 1320 and then the third inverter stage 1330 to switch.

Three inverter stages 1310, 1320 and 1330 are included in the clocked comparator circuit 1300. Each of the three stages has a gain in the range of approximately ten to fifty. Incorporation of three gain stages advantageously furnishes an exponential increase in gain for the circuit 1300. For example, for a gain of ten for each stage, the overall gain is 10 to the third power or 1000. For a gain of fifty for each stage, the overall gain is 50 to the third power or 125,000.

The clocked comparator circuit 1300 advantageously responds extremely quickly after invoking a clock edge. This quick response results because the drain voltage of N-channel MOS transistor (MN1) 1314 is extremely close to the switching threshold of the first and second inverter stages 1310 and 1320. As a result, a very small change in the input signal to the comparator circuit 1300, for example a fraction of a millivolt, causes the entire circuit to switch.

Advantageously, the clocked comparator 1300 is self-calibrating and does not have an input offset voltage. Accordingly, the clocked comparator 1300 is used in some embodiments for extremely low bias voltages.

The clocked comparator 1300 has no offset voltage because only a single transistor, N-channel MOS transistor (MN1) 1314 is used for comparison of input voltages. In contrast, other comparators compare the threshold voltage of one transistor to the threshold voltage of a second transistor.

The description of certain embodiments of this invention is intended to be illustrative and not limiting. Numerous other embodiments will be apparent to those signaled in the art, all of which are included within the broad scope of this invention. Although the initialization circuit of the present invention is depicted as a circuit within an RC oscillator, the initialization circuit may be used in any timing circuits or circuits which furnish a timing signal. Specific illustrative embodiments of initialization circuits in accordance with the invention include various CMOS implementations. Other technology embodiments including BiCMOS, bipolar, gallium arsenide (GaAs) and hybrid embodiments are also within the scope of the invention. In some of these embodiments, the frequency operation of the timing circuits is extended to 10 GHz or higher. Furthermore, in other embodiments, low voltage operation of timing circuits is obtained using a 2.5 V to 3.5 V submicron CMOS technology configuration.

APPENDIX

"Physics of Semiconductor Devices", First Edition, Sze, 1969, which is known in the electronics industry and semiconductor industry as a standard workbook describing the mathematical and physical models of semiconductor devices. FIGS. 9(a) and 9(b), which are reprinted from page 41 of Sze, respectively show a first graph 1710 of electron mobility or mobility of N type carriers in N type silicon and a second graph 1720 of hole mobility or mobility of P type carriers in P type silicon. In both graphs 1710 and 1720, the vertical axis shows mobility in cm² /V-s and the horizontal axis shows temperature. Individual lines are shown for various carrier concentrations.

At a carrier concentration of approximately 10¹⁴ carriers/cm³, mobility depends highly on temperature. As carrier concentration is increased, carrier mobility decreases. As carrier mobility decreases, temperature dependence decreases and substantially disappears at a concentration of approximately 10¹⁹ carriers/cm³ for both electron and hole mobility. However, electron mobility is more uniform with a varying temperature, showing a substantially flat characteristic from 0° C. to 150° C. Hole mobility, in contrast, shows a very flat characteristic from about 25° C. to about 100° C.

In an integrated circuit, it is advantageous to utilize a diffused resistor having operating characteristics that do not vary with changes in temperature. Therefore, for an RC oscillator circuit that includes an on-chip resistor for the RC network, it is advantageous to use a resistor having a carrier concentration of approximately 10¹⁹ carriers/cm³, whether the resistor is a diffusion, a diffused resistor or an on-chip polysilicon resistor. 

What is claimed is:
 1. An initialization circuit for reducing settling time of a system timing signal using a core oscillator, the circuit comprising:means for disabling the core oscillator in a power-down mode and re-enabling the core oscillator upon termination of the power-down mode; and digital means coupled to the core oscillator for digitally storing an indication of an oscillation frequency essentially immediately preceding the power-down mode the storing means receiving the indication of an oscillation frequency from the core oscillator.
 2. A timer initialization circuit for stabilizing a timing signal of a system timed using a core oscillator, the circuit comprising:means for disabling the core oscillator in a power-down mode and re-enabling the core oscillator upon termination of the power-down mode; and means for storing an indication of an oscillation frequency essentially immediately preceding the power-down mode including:a frequency counter coupled to the core oscillator for counting counts indicative of the system timing signal; and a digital to analog converter (DAC) having an input terminal coupled to the frequency counter circuit via a plurality of digital signal lines indicative of frequency counter counts and having an output terminal coupled to the input terminal of the core oscillator.
 3. A circuit according to claim 2, wherein the disabling and re-enabling means comprises:a monostable circuit coupled to a power-down signal line; a first logic circuit having a first input terminal coupled to the DAC output terminal, a second input terminal coupled to the monostable circuit and an output terminal; and a second logic circuit having a first input terminal coupled to the monostable circuit, a second input terminal coupled to the core oscillator, a third input terminal coupled to the output terminal of the first logic circuit and an output terminal coupled to the frequency counter.
 4. A circuit according to claim 3, wherein:the monostable circuit generates a power-down signal and a restart signal; the first logic circuit disables an input signal to the input terminal of the core oscillator in response to a combination of the power-down signal and a DAC signal to the core oscillator exceeding a determined magnitude; the second logic circuit disables a timing signal from the core oscillator to the frequency counter in response to the first logic circuit; the frequency counter resets a frequency count in response to the power-down signal, continues to count timing cycles from the core oscillator until the timing signal is disabled, and holds the frequency counter when the timing signal is disabled; and the digital to analog converter (DAC) generates an electrical signal indicative of a count signal from the frequency counter.
 5. A timing circuit comprising:an RC circuit for setting an RC time constant; a core oscillator for generating a timing signal at a controlled frequency; a comparator coupled to the RC circuit and the core oscillator for comparing an indicator of the controlled frequency to an indicator of the RC time constant; means responsive to the comparator for adjusting the frequency of the core oscillator, including:a frequency counter having an input terminal coupled to the core oscillator and an output terminal; and a charge pump circuit having an input terminal coupled to the comparator, an output terminal coupled to an input terminal of the core oscillator and a control terminal coupled to the output terminal of the frequency counter; and an oscillator initialization circuit having an input terminal coupled to the frequency counter and an output terminal coupled to the core oscillator.
 6. A timing circuit according to claim 5, wherein the oscillator initialization circuit comprises:means for disabling the core oscillator in a power-down mode and re-enabling the core oscillator upon termination of the power-down mode; and means for storing an indication of an oscillation frequency essentially immediately preceding the power-down mode.
 7. A timing circuit according to claim 6, wherein the indication storing means comprises:a digital to analog converter (DAC) having an input terminal coupled to the frequency counter circuit via a plurality of digital signal lines indicative of frequency counter counts and having an output terminal coupled to the input terminal of the core oscillator.
 8. A timing circuit according to claim 7, wherein the disabling and re-enabling means comprises:a monostable circuit having an input terminal coupled to a power-down signal line; a first logic circuit having a first input terminal coupled to the DAC output terminal, a second input terminal coupled to the monostable circuit and an output terminal; and a second logic circuit having a first input terminal coupled to the monostable circuit, a second input terminal coupled to the core oscillator, a third input terminal coupled to the output terminal of the first logic circuit and an output terminal coupled to the frequency counter.
 9. A timing circuit according to claim 8, wherein:the monostable circuit generates a power-down signal and a restart signal; the first logic circuit disables an input signal to the input terminal of the core oscillator in response to a combination of the power-down signal and a DAC signal to the core oscillator exceeding the charge pump signal to the core oscillator; the second logic circuit disables a timing signal from the core oscillator to the frequency counter in response to the first logic circuit; the frequency counter resets a frequency count in response to the power-down signal, continues to count timing cycles from the core oscillator until the timing signal is disabled, and holds the frequency counter when the timing signal is disabled; and the digital to analog converter (DAC) generates an electrical signal indicative of a count signal from the frequency counter.
 10. A method of reducing settling time of a system timing signal using a core oscillator, the method comprising the steps of:disabling the core oscillator in a power-down mode and re-enabling the core oscillator upon termination of the power-down mode; receiving an indication of an oscillation frequency from the core oscillator; and digitally storing an indication of an oscillation frequency essentially immediately preceding the power-down mode.
 11. A method of stabilizing a timing signal of a system timed using a core oscillator, the method comprising the steps of:disabling the core oscillator in a power-down mode and re-enabling the core oscillator upon termination of the power-down mode; and storing an indication of an oscillation frequency essentially immediately preceding the power-down mode including the steps of:counting counts indicative of the system timing signal; converting a digital signal indicative of the counts into an analog signal; and applying the analog signal to the core oscillator to control a frequency of oscillation.
 12. A method according to claim 11, further comprising the steps of:generating a power-down signal and a restart signal; disabling an input signal to the input terminal of the core oscillator in response to a combination of the power-down signal and the analog signal to the core oscillator exceeding a determined magnitude; disabling a timing signal from the core oscillator to the frequency counter in response to a disabled input signal; resetting the count in response to the power-down signal; continuing to count timing cycles until the timing signal is disabled; holding the count when the timing signal is disabled; and generating an electrical signal indicative of the count. 